1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_view.h> 5 #include <uf_modl.h> 6 7 8 UF_initialize(); 9 10 //创建块 11 UF_FEATURE_SIGN Sign = UF_NULLSIGN; 12 double CornerPt[3] = {0.0, 0.0, 0.0}; 13 char *EdgeLen[3] = {"100", "100", "500"}; 14 tag_t BlkTag = NULL_TAG; 15 UF_MODL_create_block1(Sign, CornerPt, EdgeLen, &BlkTag); 16 17 //特征找体 18 tag_t BodyTag = NULL_TAG; 19 UF_MODL_ask_feat_body(BlkTag, &BodyTag); 20 21 //适合窗口 22 tag_t ViewTag = NULL_TAG; 23 UF_VIEW_fit_view(ViewTag, 1.0); 24 25 UF_terminate();
NX二次开发-UFUN适应窗口UF_VIEW_fit_view
原文:https://www.cnblogs.com/nxopen2018/p/10957192.html