NX9+VS2012 using System; using NXOpen; using NXOpen.UF; //打开多选对话框 Selection.MaskTriple[] mask_arry1 = new Selection.MaskTriple[1]; mask_arry1[0].Type = UFConstants.UF_line_type; mask_arry1[0].Subtype = 0; mask_arry1[0].SolidBodySubtype = 0; TaggedObject[] objectArray; theUI.SelectionManager.SelectTaggedObjects("A", "B", Selection.SelectionScope.WorkPart, Selection.SelectionAction.ClearAndEnableSpecific, false, false, mask_arry1, out objectArray); theUfSession.Ui.OpenListingWindow(); foreach (var item in objectArray) { theUfSession.Ui.WriteListingWindow(item.Tag.ToString()); theUfSession.Ui.WriteListingWindow(" "); } Caesar卢尚宇 2020年8月31日