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;
arrMaskForPoints.Type = UFConstants.UF_machining_geom_type;arrMaskForPoints.Subtype = UFConstants.UF_mach_geom_feature_subtype;arrMaskForPoints.SolidBodySubtype = 0;
But NXOpen.BlockStyler.SpecifyPoint dont have a function SetSelectionFilter.
is this the way to change the filter type?
To set the interpart selection option to entire assembly the SpecifyPoint block has an "InterpartSelection" property that you can set to one of:
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.
Dell 7530 Precision, Win10, 32GB. Developing in: Java | C | KFProduction: [NX12.0.2 MP1]