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