giskumar Posted January 18, 2011 Posted January 18, 2011 Hi all Can i use a lisp command like this. (command "Lispcommand") Thanks, Kumar. Quote
MSasu Posted January 18, 2011 Posted January 18, 2011 If is about a command defined in AutoLISP you can call it like below: (c:MyCommand) Regards, Quote
fuccaro Posted January 18, 2011 Posted January 18, 2011 If by "lispcommand" you meant the name of a lisp routine defined in the current drawing, (lispcommand) should work. If the routine needs parameters, call it like (lispcommand param1 param2 ... ) Quote
irneb Posted January 18, 2011 Posted January 18, 2011 If it's a command created through lisp, then as msasu stated you can call it directly through (C:LispCommand). Unfortunately if that command asks for user input you can't easily provide it from another lisp routine. If you want to do this you need to look into ActiveX and in particular the Document's SendCommand method. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.