摘要: UF_initialize(); char msg[111]; //定义循环曲线 std::vector<tag_t> lineNum; Line *line1=NULL; Line *line2=NULL; Session *theSession = Session::GetSession(); 阅读全文
posted @ 2021-10-15 16:45 光量子 阅读(298) 评论(0) 推荐(0) 编辑
摘要: #include <uf_defs.h>#include <uf.h>#include <uf_ui.h>#include <uf_ui_types.h>#include <iostream>#include <uf_assem.h>#include <UF_MODL.h>#include <UF_ 阅读全文
posted @ 2021-10-12 11:16 光量子 阅读(52) 评论(0) 推荐(0) 编辑
摘要: // Enter your callback code here UF_initialize(); char msg[111]; /*theSession->ListingWindow()->Open(); Session *theSession = Session::GetSession(); P 阅读全文
posted @ 2021-10-11 13:31 光量子 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 这是一篇测试代码,其中有很多条件的测试,尤其注意注释部分,知识 点较多 UF_initialize(); char msg[111]; theSession->ListingWindow()->Open(); Session *theSession = Session::GetSession(); 阅读全文
posted @ 2021-10-09 16:20 光量子 阅读(83) 评论(0) 推荐(0) 编辑
摘要: #include <uf_defs.h>#include <uf_ui_types.h>#include <iostream>#include <NXOpen/Session.hxx>#include <NXOpen/UI.hxx>#include <NXOpen/NXMessageBox.hxx> 阅读全文
posted @ 2021-10-07 14:46 光量子 阅读(125) 评论(0) 推荐(0) 编辑
摘要: void ZiDongWanTou::cycleLine(){ Session *theSession = Session::GetSession(); Part *displayPart(theSession->Parts()->Display()); Part *workPart(theSess 阅读全文
posted @ 2021-08-14 14:22 光量子 阅读(45) 评论(0) 推荐(0) 编辑
摘要: int ZiDongWanTou::apply_cb(){ int errorCode = 0; try { // Enter your callback code here + UF_initialize(); char msg[100]; Session *theSession = Sessio 阅读全文
posted @ 2021-08-12 07:53 光量子 阅读(67) 评论(0) 推荐(0) 编辑
摘要: UF_initialize(); char msg[111]; theSession->ListingWindow()->Open(); Session *theSession = Session::GetSession(); Part *workPart(theSession->Parts()-> 阅读全文
posted @ 2021-08-09 16:22 光量子 阅读(178) 评论(0) 推荐(0) 编辑
摘要: ///////////////////////////////////////////////////////////////////////////////////////// Represents a component in a NXOpen::Assemblies::ComponentAss 阅读全文
posted @ 2021-08-08 11:25 光量子 阅读(81) 评论(0) 推荐(0) 编辑
摘要: theSession->ListingWindow()->Open(); ///遍历方式 Features::Feature *fcList; std::vector<NXObject *> entitiesArray; Features::FeatureCollection *fc=workPar 阅读全文
posted @ 2021-08-04 16:52 光量子 阅读(44) 评论(0) 推荐(0) 编辑