Jump to content

Select the line and selected point at once


wimal

Recommended Posts

ENTSEL fuction will return a list containing the selected entity and the coordinates of the point picked by user:

(cadr (entsel))

Link to comment
Share on other sites

Alternatively check SSGET and SSNAMEX functions which will give you more information on user's selection action.

(ssnamex (ssget))

Link to comment
Share on other sites

I used your first option.

But results is not 100% crrect.

I thing the point is someware inside the pick box. not exactlly on the object.

Link to comment
Share on other sites

I used your first option.

But results is not 100% crrect.

I thing the point is someware inside the pick box. not exactlly on the object.

That't true, it will return the coordinates of picked point's (that't it, the center of pickbox); in most cases this isn't a point on selected entity. To project it on the entity please check the VLAX-CURVE-GETCLOSESTPOINTTO function.

 

 

 

(nentselp )

Try use this pick point / coordinates (snap endpoint) of entity

Please pay attention that for most entities this will return the same as ENTSEL.

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