1. 程式人生 > >NX二次開發-UFUN適應視窗UF_VIEW_fit_view

NX二次開發-UFUN適應視窗UF_VIEW_fit_view

NX9+VS2012

#include <uf.h>
#include <uf_view.h>
#include <uf_modl.h>


UF_initialize();

//建立塊
UF_FEATURE_SIGN Sign = UF_NULLSIGN;
double CornerPt[3] = {0.0, 0.0, 0.0};
char *EdgeLen[3] = {"100", "100", "500"};
tag_t BlkTag = NULL_TAG;
UF_MODL_create_block1(Sign, CornerPt, EdgeLen, &BlkTag);

//特徵找體
tag_t BodyTag = NULL_TAG;
UF_MODL_ask_feat_body(BlkTag, &BodyTag);

//適合視窗
tag_t ViewTag = NULL_TAG;
UF_VIEW_fit_view(ViewTag, 1.0);

UF_terminate();

Caesar盧尚宇  
[email protected]

在這裡插入圖片描述