Jump to content

Recommended Posts

Posted

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?

Posted

I think you'll first have to select the line, and then select the point. That's the easy way out :-)

Posted

I know I can do it this way, but I'd still like to perform the operation with one selection only...

Posted

Well, then I haven't got a better idea :) Sorry!

Posted

entsel gives entity and pick point but!! pick point is not necessarily on actual object but can be real close. in lsp VBA ?

Posted

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

Posted

Another way if you can pick the object using snaps then retrieve the variable lastpoint then select object at this point ?

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