NX二次开发源码分享:一个简单的选择体功能(NXOpen C++)
public static Body SelectABody(string prompt){
TaggedObject selobj = null;
Point3d cursor = default(Point3d);
Selection.MaskTriple[] bodies =
{ new Selection.MaskTriple(UFConstants.UF_solid_type, 0,
UFConstants.UF_UI_SEL_FEATURE_BODY) };
Selection.Response resp =
UI.GetUI().SelectionManager.SelectTaggedObject(prompt, "Select a body",
Selection.SelectionScope.AnyInAssembly,
Selection.SelectionAction.ClearAndEnableSpecific,
false, false, bodies, out selobj, out cursor);
return (Body)selobj;
}
有例子嗎
页:
[1]