08 2022 档案

摘要:两点之间的距离公式: 源码: //获得平面上2点距离 double getPointToPointDis(double p1[2],double p2[2]) { return sqrt((p1[0]-p2[0])*(p1[0]-p2[0])+(p1[1]-p2[1])*(p1[1]-p2[1])) 阅读全文
posted @ 2022-08-27 15:20 王牌飞行员_里海 阅读(182) 评论(0) 推荐(0) 编辑
摘要:为什么NX10.0不认“司筒”两个字,上不了属性。 const char *utf8_str = nxstr_temp.GetUTF8Text(); mWStr_temp = UHelper::ANSIToUnicode(nxstr_temp.GetLocaleText()); 阅读全文
posted @ 2022-08-18 11:06 王牌飞行员_里海 阅读(84) 评论(0) 推荐(0) 编辑
摘要:显示一个临时文本的例子: (刷新后消失) 源码: #include "me.hpp" # include "NXOpen\NXString.hxx" extern DllExport void ufusr(char *param, int *returnCode, int rlen) { UF_in 阅读全文
posted @ 2022-08-15 15:29 王牌飞行员_里海 阅读(469) 评论(1) 推荐(0) 编辑
摘要:UF_DISP_ask_color 阅读全文
posted @ 2022-08-11 19:58 王牌飞行员_里海 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-11 19:57 王牌飞行员_里海 阅读(101) 评论(0) 推荐(0) 编辑
摘要:效果: 源码: tag_t tagCurve = vecObj[0]->Tag(); double ctol(0.0); double atol(0.0); double stol(1.0);//步进公差 int numpts(0); tag_t pt_tag(NULL_TAG); double * 阅读全文
posted @ 2022-08-09 15:16 王牌飞行员_里海 阅读(730) 评论(0) 推荐(1) 编辑
摘要:效果: 源码: vector<NXOpen::TaggedObject *> vecObj = this->selection0->GetSelectedObjects(); if (vecObj.size() == 2) { tag_t tagTarget = vecObj[0]->Tag(); 阅读全文
posted @ 2022-08-09 13:05 王牌飞行员_里海 阅读(286) 评论(0) 推荐(0) 编辑
摘要:int init_proc_face(UF_UI_selection_p_t select, void* user_data) { int num_triples = 1; UF_UI_mask_t mask_triples[] = { UF_solid_type,0,20 }; if (UF_UI 阅读全文
posted @ 2022-08-05 17:52 王牌飞行员_里海 阅读(140) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示