Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Jul 13, 2011
15
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
 
Replies continue below

Recommended for you

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