03 2023 档案

摘要:NXOpen::FileNew *fileNew1; fileNew1 = theSession->Parts()->FileNew(); fileNew1->SetUseBlankTemplate(true); fileNew1->SetUnits(NXOpen::Part::UnitsMilli 阅读全文
posted @ 2023-03-10 18:14 firetuo 阅读(59) 评论(0) 推荐(0) 编辑
摘要:if (theblocktoggle02 == true)//抑制复制体的特征,//UF方式 { uf_list_p_t feature_list; UF_MODL_ask_body_feats(copies, &feature_list); UF_MODL_suppress_feature(fea 阅读全文
posted @ 2023-03-10 16:10 firetuo 阅读(41) 评论(0) 推荐(0) 编辑
摘要:void PartEdit::formatThedate() //获得系统时间{ //获得日期 UF_initialize(); UF_system_info_t info; UF_ask_system_info(&info); //格式化日期 string formatdate = info.da 阅读全文
posted @ 2023-03-10 13:47 firetuo 阅读(48) 评论(0) 推荐(0) 编辑
摘要:void SEModifyAttX::delAtt() //删除实体或者部件事例属性{ try { //获取UI界面的属性 //获取选择对象TAG PropertyList *blockxuanzhePros = bodySelect0->GetProperties(); std::vector<N 阅读全文
posted @ 2023-03-10 12:46 firetuo 阅读(56) 评论(0) 推荐(0) 编辑
摘要:NXOPEN关于使用代码关闭UI 因为初始化不了,所以不能用 theDialog->PerformApply(); 所以改用cwnd类模拟点击窗口来完成 以下头文件必须在最后面 #include <afxwin.h> //必写 #undef CreateDialog //必写#include <NX 阅读全文
posted @ 2023-03-09 16:03 firetuo 阅读(138) 评论(0) 推荐(0) 编辑
摘要:theDialog->TopBlock()->FindBlock("Dialog")->SetLabel("自动装配(六六超六 QQ:920037355)"); //theDialog->TopBlock()->FindBlock("Dialog")->GetProperties()->SetStr 阅读全文
posted @ 2023-03-09 15:54 firetuo 阅读(22) 评论(0) 推荐(0) 编辑
摘要:c++多个源文件共用一个全局变量(extern 的用法) 1,在Hello.hpp里面定义: using namespace std;using namespace NXOpen;using namespace NXOpen::BlockStyler; //在以上代码后定义 extern int p 阅读全文
posted @ 2023-03-09 15:52 firetuo 阅读(974) 评论(0) 推荐(0) 编辑

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