namespace SelectWithClass
{
public class Class1
{
public static NXOpen.Session theSession;
public static UFSession theUFSession;
public static NXOpen.Part workPart;
static int sel_init_proc(IntPtr select_,IntPtr user_data)
{
int num_triples = 2;
UFUi.Mask[] mask_triples = new UFUi.Mask[2]; /* enable only lines and edges */
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_solid_type;
mask_triples[1].object_subtype = 0;
mask_triples[1].solid_type = UFConstants.UF_UI_SEL_FEATURE_ANY_EDGE;
theUFSession.Ui.SetSelMask(select_, UFUi.SelMaskAction.SelMaskClearAndEnableSpecific, num_triples, mask_triples);
return UFConstants.UF_UI_SEL_SUCCESS;
}