Jump to content

VBA - Getting an entity at a osnap point


Joro--

Recommended Posts

I'm trying in VBA to allow the user to select a line at a specific point. Something like getPoint (with the osnap visible) but in fact getting both - the coordinates of the point of selection and the selected object. It should be almost like using the GetEntity, but there I can't control visibly the point of selection.

 

Any ideas?

Link to comment
Share on other sites

It's VBA. I kind of managed to pick an object at osnap point using GetPoint, where osnap works, and then iterate trough all the objects to find which of them can be picked at this point. I'd like there was a better solution but it turs out that this works quite fast even in case of several thousands of objects

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