Jump to content

Recommended Posts

Posted

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

Posted

 

 

(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

Posted

A guess:

 

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

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

Posted

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?

Posted
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)

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