Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selection Mask Array 1

Status
Not open for further replies.

nathangaldamez

New member
Joined
Jul 13, 2011
Messages
15
Location
US
I was wondering how to have the NX Journal selection mask array select all curves including lines and splines. So far If I use

.Type = UFConstants.UF_line_type
or
.Type = UFConstants.UF_spline_type

I can filter for either a line or a spline. But I would like to filter for all curves.

--------------------------------------------------------------
This is the selection mask portion of my code:

Dim selectionMask_array(1) As Selection.MaskTriple
With selectionMask_array(0)
.Type = UFConstants.UF_line_type
.Type = 1
.Subtype = 0
.SolidBodySubtype = 0

End With
 
Just use additional masks one for each of the curve type you wish to include. For example for lines and splines to be both selectable the code would be:

Dim selectionMask_array(1) As Selection.MaskTriple

selectionMask_array(0).Type = UFConstants.UF_line_type
selectionMask_array(0).Subtype = 0
selectionMask_array(0).SolidBodySubtype = 0
selectionMask_array(1).Type = UFConstants.UF_spline_type
selectionMask_array(1).Subtype = 0
selectionMask_array(1).SolidBodySubtype = 0

Regards

Frank Swinkels
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top