Jump to content

Recommended Posts

Posted

Hello everyone,
I want to do the following briefly.
I'll specify two points, and it will automatically find the third point, then rotate it on the Z axis.
This should work in both UCS and WCS.
...
(setq n1 (getpoint))
(setq n2 (getpoint))
(command "_.ucs" "_3p" n1 n2 n3)
(command "_.ucs" "ZA" n1 n2)
...

Posted

If you press enter with n3 the Z axis seems to keep pointing in the same direction, so this like works for me:

(if
  (and
    (setq n1 (getpoint))
    (setq n2 (getpoint))
  )
  (command "_.ucs" "_3p" n1 n2 "")
)

 

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