//NX12_NXOpenCPP_Wizard1 // Mandatory UF Includes #include uf.h #include uf_drf.h // NXOpen 必需基础头文件 #include NXOpen/ListingWindow.hxx #include NXOpen/NXMessageBox.hxx #include NXOpen/UI.hxx #include NXOpen/NXException.hxx #include NXOpen/Part.hxx #include NXOpen/PartCollection.hxx #include NXOpen/Session.hxx // 标准C++库 #include cstring #include iostream using namespace NXOpen; using std::string; using std::exception; //------------------------------------------------------------------------------ // NXOpen 主类 //------------------------------------------------------------------------------ class MyClass { public: static Session *theSession; static UI *theUI; MyClas