简介:
NX二次开发 创建圆柱 UF_MODL_create_cylinder。
代码:
#include "me.hpp"
extern DllExport void ufusr(char* param, int* returnCode, int rlen)
{
UF_initialize();
UF_FEATURE_SIGN sign = UF_NULLSIGN; //布尔 无
double douStartPoint[3] = { 0.0 };
char charH[256] = "20"; //圆柱高度
char charD[256] = "10"; //圆柱直径
double douDir[3] = { 0.0,0.0,1.0 };
tag_t tagCylinderFeat = NULL_TAG;
UF_MODL_create_cylinder(sign, NULL_TAG, douStartPoint, charH,
charD, douDir, &tagCylinderFeat);
UF_terminate();
}
extern int ufusr_ask_unload(void)
{
return (UF_UNLOAD_IMMEDIATELY);
}
效果:
me.hpp 内容
标签:圆柱,cylinder,int,0.0,create,char,二次开发,UF From: https://blog.51cto.com/wangpaifeixingy/8596274