Cancel
Showing results for 
Search instead for 
Did you mean: 

NXOpen : Object selection and shape modification

Pioneer
Pioneer

I am having an issue with NXopen using C++. I am supposed to selected object from  NX12 and save then in my C++ code and then apply some modifications on those objects (i.e modifing a Cube by changing its Corners to have a round shaped corner, or making the whole cube look like a Sphere). 

 

I used BlockStyler to create GUI having the ability to select faces and body, but while executing, i get an empty list (or null pointer).

 

I have tried also the SelectionManger by calling the function select taggedObject, but then i can not cast the selected object to DisplayableObject.

 

objectSelectionIssue.PNG

2 REPLIES 2

Re: NXOpen : Object selection and shape modification

Creator
Creator
Hello med_Ayssar,

I dont realy understand what you are trying to achieve.

Usually you use the Selectionmanager
OR
the selection blocks (for example "select face") of the block UI styler. Look in the settings of the block, here you can change the scope and add special filters. I used them to select only HolePackage features.

Here is how to get and create objects from a selection block.

https://community.plm.automation.siemens.com/t5/NX-Programming-Customization-Forum/Block-UI-Styler-H...

Hope I could help a bit.

Greetings from Germany

Nanuk

Re: NXOpen : Object selection and shape modification

Pioneer
Pioneer

My problem that i was not able to select any objects, and vectors are empty