0
点赞
收藏
分享

微信扫一扫

UG\NX二次开发 创建简单孔特征 UF_MODL_create_simple_hole


文章作者:里海

简介:

创建简单孔特征 UF_MODL_create_simple_hole

效果:

      

UG\NX二次开发 创建简单孔特征 UF_MODL_create_simple_hole_NX

代码:

#include "me.hpp"

extern DllExport void ufusr(char* parm, int* returnCode, int rlen)
{
	UF_initialize();

	double dPoint[3] = { 4.929432281, 6.249725657, 15.00000000 };
	double dDir[3] = { 0, 0, -1.0 };
	tag_t tagFace = 45189;
	double dHoleDia = 10.0;
	double dHoleDepth = 20.0;
	double dAngle = 118.0;

	tag_t tagHoleFeat = NULL_TAG;;
	UF_MODL_create_simple_hole(dPoint, dDir, to_string(dHoleDia).c_str(),
		to_string(dHoleDepth).c_str(), to_string(dAngle).c_str(), tagFace,
		NULL_TAG, &tagHoleFeat);

	UF_terminate();
}

extern int ufusr_ask_unload(void)
{
	return(UF_UNLOAD_IMMEDIATELY);
}

举报

相关推荐

0 条评论