Joro-- Posted July 22, 2011 Share Posted July 22, 2011 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? Quote Link to comment Share on other sites More sharing options...
AstroNout Posted July 22, 2011 Share Posted July 22, 2011 I think you'll first have to select the line, and then select the point. That's the easy way out :-) Quote Link to comment Share on other sites More sharing options...
Joro-- Posted July 22, 2011 Author Share Posted July 22, 2011 I know I can do it this way, but I'd still like to perform the operation with one selection only... Quote Link to comment Share on other sites More sharing options...
AstroNout Posted July 22, 2011 Share Posted July 22, 2011 Well, then I haven't got a better idea Sorry! Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 26, 2011 Share Posted July 26, 2011 entsel gives entity and pick point but!! pick point is not necessarily on actual object but can be real close. in lsp VBA ? Quote Link to comment Share on other sites More sharing options...
Joro-- Posted July 26, 2011 Author Share Posted July 26, 2011 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 Quote Link to comment Share on other sites More sharing options...
BIGAL Posted July 27, 2011 Share Posted July 27, 2011 Another way if you can pick the object using snaps then retrieve the variable lastpoint then select object at this point ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.