NX二次开发:一个DLL设置多个按钮操作的方法

科技资讯 投稿 6400 0 评论

NX二次开发:一个DLL设置多个按钮操作的方法

还有很多人不知道如何设置一个DLL调用不同的功能,今天说的是通过入口函数参数值进行设置。还有一种方法是使用UF_MB.h里面的函数也可以实现,今天先说一种,具体看代码。

  1 //=============================
  2 // 一个DLL设置多个按钮操作的方法
  3 //=============================
  4 // Mandatory UF Includes
  5 #include <uf.h>
  6 #include <uf_object_types.h>
  7 #include <uf_draw.h>
  8 #include <uf_part.h>
  9 #include <uf_ugmgr.h>
 10 #include <uf_ui.h>
 11 #include <uf_obj.h>
 12 #include <uf_drf.h>
 13 
 14 // Std C++ Includes
 15 #include <iostream>
 16 #include <sstream>
 17 #include <vector>
 18 #include <string>
 19 #include <algorithm>
 20 #include <tchar.h>
 21 #include <atlconv.h>
 22 #include <shellapi.h>
 23 
 24 #include <windows.h>
 25 #undef CreateDialog
 26 #pragma comment(lib,"shell32.lib"
 27 
 28 using namespace NXOpen;
 29 using std::string;
 30 using std::exception;
 31 using std::stringstream;
 32 using std::endl;
 33 using std::cout;
 34 using std::cerr;
 35 
 36 static enum StringValue {
 37     evNotDefined,
 38     evStringValue1,
 39     evStringValue2,
 40     evStringValue3,
 41 

编程笔记 » NX二次开发:一个DLL设置多个按钮操作的方法

赞同 (34) or 分享 (0)
游客 发表我的评论   换个身份
取消评论

表情
(0)个小伙伴在吐槽