NX二次开发 UFUN创建扫掠 UF_MODL_create_sweep
//VS8.0+VS2010
#include <uf_modl.h>
#include <uf_curve.h>
#include <uf_vec.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
//创建三点圆弧,引导线
double first_point1[3] = { 0.0, 0.0, 0.0 };
double second_point1[3] = { 0.0, 0.0, 5.0 };
double third_point1[3] = { 8.0, 0.0, 2.0 };
tag_t arc_tag1 = NULL_TAG;
UF_CURVE_create_arc_thru_3pts(1, first_point1, second_point1, third_point1, &arc_tag1);
//创建三点整圆,截面线
double first_point2[3] = { -2.0, 0.0, 0.0 };
double second_point2[3] = { 0.0, 2.0, 0.0 };
double third_point2[3] = { 2.0, 0.0, 0.0 };
tag_t arc_tag2 = NULL_TAG;
UF_CURVE_create_arc_thru_3pts(2, first_point2, second_p
本文介绍如何在NX的二次开发中利用UFUN库的UF_MODL_create_sweep函数创建扫掠特征,详细阐述了相关步骤和代码实现。
订阅专栏 解锁全文

665

被折叠的 条评论
为什么被折叠?



