Jump to content

UCS lisp routines?


nathanaelbfw

Recommended Posts

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

Link to comment
Share on other sites

 

 

(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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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)

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...