NX加工CAM二次开发源码分享: 选择一个加工程式
NX加工CAM二次开发源码分享: 选择一个加工程式
注意MaskTriple 的设置即可
public static Operation select_an_operation(string prompt)
{
TaggedObject selobj = null;
Point3d cursor = default(Point3d);
Selection.MaskTriple[] ops =
{ new Selection.MaskTriple(UFConstants.UF_machining_operation_type,
UFConstants.UF_all_subtype, 0) };
Selection.Response resp =
UI.GetUI().SelectionManager.SelectTaggedObject(prompt, "Select an Operation",
Selection.SelectionScope.WorkPart,
Selection.SelectionAction.ClearAndEnableSpecific,
false, false, ops, out selobj, out cursor);
return (Operation)selobj;
}
页:
[1]