NX二次开发-UFUN创建圆锥UF_MODL_create_cone1
NX11+VS2013
#include <uf.h>
#include <uf_modl.h>
UF_initialize();
//创建圆锥
UF_FEATURE_SIGN Sign = UF_NULLSIGN;//设置布尔
double Origin[3] = { 0.0, 0.0, 0.0 };//原点
char *Height = "100";//高度
char *Diam[2] = { "50", "20" };//顶部直径,底部直径
double Dirction[3] = { 0.0, 0.0, 1.0 };//矢量方向
tag_t ConeTag = NULL_TAG;
UF_MODL_create_cone1(Sign, Origin, Height, Diam, Dirction, &ConeTag);
//创建圆锥
UF_FEATURE_SIGN Sign1 = UF_NULLSIGN;//设置布尔
double Origin1[3] = { 0.0, 100.0, 0.0 };//原点
char *Height1 = "100";//高度
char *Diam1[2] = { "50", "0" };//顶部直径,底部直径
double Dirction1[3] = { 0.0, 0.0, 1.0 };//矢量方向
tag_t ConeTag1 = NULL_TAG;
UF_MODL_create_cone1(Sign1, Origin1, Height1, Diam1, Dirction1, &ConeTag1);
UF_terminate();