Jump to content

Rotate UCS Twice?


Bill_Myron

Recommended Posts

I have the need to rotate the UCS twice in order to dimension easier.

 

I need to Rotate the UCS to an object, and then rotate it 90 on the Z axis.

 

I ahve tried to run this as a script, but can not figure out how to break the command to allow me to select a line in the middle.

 

 

 

Any help would be great thanks!

Link to comment
Share on other sites

Hahaha. 2 back slahes was all I needed?

 

Maybe one day I will actually learn this crazy lisp language.

 

Thanks for the help Lee Mac!!

Edited by Bill_Myron
Link to comment
Share on other sites

Hahaha. 2 back slahes was all I needed?

 

Maybe one day I will actually learn this crazy lisp language.

 

Or alternatively, you could use the pause symbol, which is predefined to hold the value of "\\" (note: "\\" is a single backslash in LISP, since "\" is an escape character).

 

Hence the code could also become:

(defun c:u2 ( )
   (command "_.ucs" "_OB" pause "_.ucs" "_Z" 90)
   (princ)
)

However, I prefer to use the literal backslash since the pause symbol cannot be localised by the calling function and hence could potentially be redefined to hold another value by other programs that are running.

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