Jump to content

Anyone know of a two click move routine?


Jamesclark64

Recommended Posts

Not quite 'last point' doesn't get either of the points used in the selection, the last point is the one before the selection set.

 

This one will get the mouse pointer as reference and grab the point when you hit 'enter' at the end of the selection set selection,

 

(defun c:qmove ( / pt1 MySS)
(while
  (setq MySS (ssget))
  (setq pt1 (cadr (grread t 15 0)) )
  (command "move" MySS "" pt1 pause )
)
  (princ)
)

 

 

  • Like 1
Link to comment
Share on other sites

15 minutes ago, Steven P said:

Not quite 'last point' doesn't get either of the points used in the selection, the last point is the one before the selection set.

You're right! good catch! Updated my previous post to match your solution.

Edited by pkenewell
  • Like 1
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...