designerstuart Posted April 18, 2011 Posted April 18, 2011 hello lispers this should be a nice easy one - how come i have two lsp commands, where in one i can select object, enter command, all good but the other will only allow me to enter command first, then select object? (defun c:bb () (command "draworder" "back") ) (defun c:hh () (command "dim" "home") ) they both take the same form, so i assume it's something about the way autocad reads the different commands? cheers Quote
alanjt Posted April 18, 2011 Posted April 18, 2011 It's how the DIM command functions. It's like a command with several subcommands. Quote
designerstuart Posted April 18, 2011 Author Posted April 18, 2011 thanks alan - now i see is there an easy way to alter this? (i'm guessing not) Quote
alanjt Posted April 18, 2011 Posted April 18, 2011 thanks alan - now i seeis there an easy way to alter this? (i'm guessing not) (defun c:HH (/ ss) (if (setq ss (ssget "_:L" '((0 . "*DIMENSION*")))) (command "_.DIM" "_HOME" ss "" "_EXIT") ) (princ) ) 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.