NX二次开发 UFUN删除对象 UF_OBJ_delete_object
//NX8.0+VS2010
#include <uf.h>
#include <uf_curve.h>
#include <uf_obj.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
double point1[3] = { 10,10,0 };
tag_t pt_tag1 = NULL_TAG;
UF_CURVE_create_point(point1, &pt_tag1);//创建点1
double point2[3] = {10,20,0};
tag_t pt_tag2 = NULL_TAG;
UF_CURVE_create_point(point2, &pt_tag2);//创建点2
UF_OBJ_delete_object(pt_tag1);//删除对象(点1)
UF_terminate();
}