NX二次开发 PK创建点 PK_POINT_create
bool PK_CreatePoint(const double point[3], PK_POINT_t& pkPoint)
{
double mm = 0.001;
PK_POINT_sf_t point_sf;
point_sf.position.coord[0] = point[0] * mm;//注意pk单位是米
point_sf.position.coord[1] = point[1] * mm;
point_sf.position.coord[2] = point[2] * mm;
if (PK_POINT_create(&point_sf, &pkPoint))
return false;
return true;
}