jmarkus
Mechanical
- Jul 11, 2001
- 377
I'm trying to learn by example how to do some journalling. I found an NX code snippet to filter a selection to curves only, but I want to modify it to filter by edges. Where can I find a good explanation of how NX parses this and how to make changes?
Thanks,
Jeff
Code:
Function mask_for_curve(ByVal select_ As IntPtr, ByVal userdata As IntPtr) As Integer
Dim num_triples As Integer = 5
Dim mask_triples(4) As UFUi.Mask
mask_triples(0).object_type = UFConstants.UF_line_type
mask_triples(0).object_subtype = 0
mask_triples(0).solid_type = 0
mask_triples(1).object_type = UFConstants.UF_circle_type
mask_triples(1).object_subtype = 0
mask_triples(1).solid_type = 0
mask_triples(2).object_type = UFConstants.UF_conic_type
mask_triples(2).object_subtype = 0
mask_triples(2).solid_type = 0
mask_triples(3).object_type = UFConstants.UF_spline_type
mask_triples(3).object_subtype = 0
mask_triples(3).solid_type = 0
mask_triples(4).object_type = UFConstants.UF_point_type
mask_triples(4).object_subtype = 0
mask_triples(4).solid_type = 0
ufs.Ui.SetSelMask(select_, _
UFUi.SelMaskAction.SelMaskClearAndEnableSpecific, num_triples, mask_triples)
Return UFConstants.UF_UI_SEL_SUCCESS
End Function
Jeff