nathanaelbfw Posted May 14, 2012 Posted May 14, 2012 Hi all! I have been learning lisp routines and am struggling to work out the one I need to rotate my model space. I have solved the routine for getting back to the original ucs setting: (defun c:EU nil (command "ucs" "w" "plan" "w") (princ)) The one that isn't working I think should look like this: (defun c:UE nil (command "ucs" "e" "plan" "current") (princ)) However, this routine fails to rotate to the current UCS despite registering the selected ucs. Thank you Quote
David Bethel Posted May 14, 2012 Posted May 14, 2012 (defun c:UE nil (command "ucs" "e" "plan" "current") (princ)) UCS _E is looking for an entity to align with. The first one is pretty straight forward. I can't tell exactly what you are trying to with this one. -David Quote
Lee Mac Posted May 14, 2012 Posted May 14, 2012 A guess: (defun c:ue nil (command "_.ucs" "_OB" pause "_.plan" "_C") (princ)) Quote
nathanaelbfw Posted May 14, 2012 Author Posted May 14, 2012 The first one is pretty straight forward. Must be why I found it so easy... what I am trying to work out is how to write a routine to shorten what I would normally do. my normal approach would be: UCS E select the line Plan Current. I hope this hasn't made it more confusing. Quote
nathanaelbfw Posted May 14, 2012 Author Posted May 14, 2012 Thank you. I supposed my next question is more complicated. How do I save these lisp routines so that I don't have to load them each time I open a new window? Quote
MSasu Posted May 14, 2012 Posted May 14, 2012 How do I save these lisp routines so that I don't have to load them each time I open a new window? Please check this tutorial from Lee Mac's website. To call the routine in code: (c:EU) 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.