Specify Point(指定点)控件的获取
NX9+VS2012 #include <uf.h>
#include <uf_ui.h> UF_initialize(); //获取点XYZ坐标
PropertyList *SelectPoint1Props = point0->GetProperties();
Point3d SelectPoint1 = SelectPoint1Props->GetPoint("Point");
delete SelectPoint1Props;
SelectPoint1Props = NULL; //得到的是Point3d类型,使用时直接 .X,.Y,.Z,来获得XYZ坐标。
//转换
char msg[];
sprintf_s(msg, "X:%f,Y:%f,Z:%f", SelectPoint1.X, SelectPoint1.Y, SelectPoint1.Z); //打印点坐标
UF_UI_open_listing_window();
UF_UI_write_listing_window(msg); UF_terminate();
高版本获取方式