NX二次开发 NXOpen窗口打印 NXMessageBox&ListingWindow
NX二次开发 NXOpen窗口打印 NXMessageBox&ListingWindow
VS8.0+VS2010
#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::