Showing results for 
Search instead for 
Did you mean: 

Change selection scope to "entire assembly" c#


I am using NX 11.


I built UI with the UI block styler.

I used the "Specify Point" ,
And I want that when the user open the block the selection scope will change to "entire assembly".


I try this code

Selection.MaskTriple[] arrMaskForPoints = new Selection.MaskTriple[1];

arrMaskForPoints[0].Type = UFConstants.UF_machining_geom_type;
arrMaskForPoints[0].Subtype = UFConstants.UF_mach_geom_feature_subtype;
arrMaskForPoints[0].SolidBodySubtype = 0;


But  NXOpen.BlockStyler.SpecifyPoint dont have a function SetSelectionFilter.


is this the way to change the filter type?






Re: Change selection scope to "entire assembly" c#

Gears Phenom Gears Phenom
Gears Phenom

To set the interpart selection option to entire assembly the SpecifyPoint block has an "InterpartSelection" property that you can set to one of:

  • Simple
  • Non-associative Interpart Copy Only
  • Associative and Non-associative Interpart Copy
  • Associative Interpart Copy

The code you listed is defining the type of object to select, not where in the assembly you can select it from.

Also, I could be wrong, but I don't think you are going to be able to select Machining Geometry Features using a SpecifyPoint block.

What exactly are you expecting to select and for what purpose? You might be better using a simple SelectObject block.

Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Dell 7530 Precision, Win10, 32GB. Developing in: Java | C | KF
Production: [NX12.0.2 MP1]