NX9+VS2012

     #include <NXOpen/NXObject.hxx>
#include <NXOpen/Part.hxx>
#include <NXOpen/PartCollection.hxx>
#include <NXOpen/UI.hxx>
#include <NXOpen/NXMessageBox.hxx>
#include <NXOpen/ListingWindow.hxx> using namespace NXOpen; NXMessageBox *mb;
ListingWindow *lw; NXOpen::Session *theSession = NXOpen::Session::GetSession();
NXOpen::Part *workPart(theSession->Parts()->Work());
NXOpen::Part *displayPart(theSession->Parts()->Display());
UI *theUI = UI::GetUI(); mb = theUI->NXMessageBox();
lw = theSession->ListingWindow(); //方法1(NXMessageBox)
mb->Show("HelloTitle", NXOpen::NXMessageBox::DialogTypeError, "HelloWorld");//类型1
mb->Show("HelloTitle", NXOpen::NXMessageBox::DialogTypeWarning, "HelloWorld");//类型2
mb->Show("HelloTitle", NXOpen::NXMessageBox::DialogTypeInformation, "HelloWorld");//类型3
mb->Show("HelloTitle", NXOpen::NXMessageBox::DialogTypeQuestion, "HelloWorld");//类型4 //方法2(ListingWindow)
lw->Open();
lw->WriteLine("HelloWorld");

最新文章

  1. hdu-5992 Finding Hotels(kd-tree)
  2. js 判断移动设备、pc端、android、iPhone、是否为微信、微博、qq空间
  3. gbd基本使用一
  4. DIOCP之编写第一个应用程序(二)
  5. Android Java执行Shell命令
  6. Spring框架下的 “接口调用、MVC请求” 调用参数、返回值、耗时信息输出
  7. php 修改 AppServ 下Apache 端口
  8. JQuery 动画之 广告
  9. IOS文件沙盒
  10. eclipse 使用hadoop-plugins 插件出现EOFException问题
  11. hdu4463 Outlets 最小生成树
  12. QT调用百度语音REST API实现语音合成
  13. Writing Science 笔记 6.20
  14. 偏置-方差分解(Bias-Variance Decomposition)
  15. jquery parents() next() prev() 找父级别标签 找同级别标签
  16. Leetcode——171.Excel表列序号【水题】
  17. 第二章 Servlet基础
  18. python selenium-7自动发送邮件
  19. mac下svn无法上传.a文件的问题
  20. Rsync备份服务

热门文章

  1. Java中的内部类怎么用
  2. Dart编程实例 - 类型测试操作符 is!
  3. putty字体和颜色修改
  4. Shiro学习(5)编码、加密
  5. echarts更新数据的方法
  6. 使用maven插件反向映射generatorConfig.xml生成代码
  7. nodejs moment 修改时间格式 日期格式与时间戳格式互相转化
  8. 解决Python报错:local variable &#39;xxx&#39; referenced before assignment(引)
  9. git: 使用submodule进行托管
  10. Apache Flink:详细入门