Jump to content
nathanaelbfw

UCS lisp routines?

Recommended Posts

nathanaelbfw

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

Share this post


Link to post
Share on other sites
David Bethel

 

 

(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

Share this post


Link to post
Share on other sites
Lee Mac

A guess:

 

(defun c:ue nil (command "_.ucs" "_OB" pause "_.plan" "_C") (princ))

Share this post


Link to post
Share on other sites
nathanaelbfw
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.

Share this post


Link to post
Share on other sites
nathanaelbfw

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?

Share this post


Link to post
Share on other sites
MSasu
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)

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...