购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008 QQ号:85585969
double askFaceArea(tag_t objTag)
{
string libgeom= GetUGInstallPath() + "libgeom.dll";
char library_name[256] = { '\0' };
strcpy(library_name, libgeom.c_str());
typedef double(*load_ufusr_f_p_t)(unsigned int v1, double v2);//定义传参
load_ufusr_f_p_t MEASURE_ask_face_area = NULL;
UF_load_library(library_name, "?MEASURE_ask_face_area@@YANIN@Z",(UF_load_f_p_t *)&MEASURE_ask_face_area);
if (MEASURE_ask_face_area != NULL)
return MEASURE_ask_face_area(objTag, 0.001);
else
return 0;
}