designerstuart Posted March 28, 2011 Share Posted March 28, 2011 what would be the best way to have two separate commands for the two mirror options, erase source object "yes" and "no"? say i wanted MM for mirror 'yes' and MN for mirror 'no' but still wanted the commands to stay the same, i.e. select objects, first point of line etc. i reckon with this customisation i could be looking at saving around 20 seconds of work every day. highly worthwhile i'm sure you'll agree. :wink: Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 (defun c:M1 (/ ss) (if (setq ss (ssget "_:L")) (command "_.mirror" ss "" PAUSE PAUSE "_Y") ) (princ) ) (defun c:M2 (/ ss) (if (setq ss (ssget "_:L")) (command "_.mirror" ss "" PAUSE PAUSE "_N") ) (princ) ) Quote Link to comment Share on other sites More sharing options...
designerstuart Posted March 28, 2011 Author Share Posted March 28, 2011 wow, superfast, thanks alan. can you please explain what the _:L means? i understand the rest, well mostly. does it tell the CAD gremlins what is being selected? Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 wow, superfast, thanks alan. can you please explain what the _:L means?i understand the rest, well mostly. does it tell the CAD gremlins what is being selected? LoL, pretty much. It just tells the ssget function to ignore objects on locked layers. Quote Link to comment Share on other sites More sharing options...
designerstuart Posted March 28, 2011 Author Share Posted March 28, 2011 and naturally, it works like a dream. thanks! Quote Link to comment Share on other sites More sharing options...
alanjt Posted March 28, 2011 Share Posted March 28, 2011 and naturally, it works like a dream. thanks! Welcome....... Quote Link to comment Share on other sites More sharing options...
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.