Is there any possiblility to give select point option in windows form application where user is going to select a point from an existing solid body?
I searched a lot, but did not get much info about it.
Solved! Go to Solution.
Try one of the overloads of this method:
This will open a selection dialog. You have the option to set selection filters and scope.
To get a point selection in a WinForm, you will have to write a large amount of code. Specifically, you'll have to get the cursor location, map it into the 3D space that NX understands, and then test to see which nearby NX objects it falls upon. And you will need lots of clever tricks to make your code run fast, because users expect instant response when specifying points.
So, if you want to create applications where the user will select NX objects or specify points, I'd advise against using WinForms. Use NX block-based dialogs, instead. You can create these either using BLock UI Styler or the Snap BlockForm functions.
Thanks for your reply. I was working in a scenario where i can't use blockStyler.
I got a solution for windows form,
I used "Selection.MaskTriple" and defined the type of object it has to select through selection scope.
Now I am able to select it with a NX selection window.