1 NX9+VS2012 2 3 #include <uf.h> 4 #include <uf_modl.h> 5 6 UF_initialize(); 7 8 //创建块 9 UF_FEATURE_SIGN Sign = UF_NULLSIGN; 10 double CornerPt[3] = {0.0, 0.0, 0.0}; 11 char* EdgeLen[3] = {"100", "100", "100"}; 12 tag_t BlkTag = NULL_TAG; 13 UF_MODL_create_block1(Sign, CornerPt, EdgeLen, &BlkTag); 14 15 //特征找边 16 uf_list_p_t EdgeList; 17 UF_MODL_ask_feat_edges(BlkTag, &EdgeList); 18 19 //获取链表数量 20 int Count; 21 UF_MODL_ask_list_count(EdgeList, &Count); 22 23 24 //创建倒圆 25 tag_t BlendTag = NULL_TAG; 26 UF_MODL_create_blend("5", EdgeList, 0, 0, 0, 0.5, &BlendTag); 27 28 //删除链表 29 UF_MODL_delete_list(&EdgeList); 30 31 UF_terminate();
NX二次开发-UFUN创建倒圆UF_MODL_create_blend
原文:https://www.cnblogs.com/nxopen2018/p/10975958.html