admin 发表于 2015-12-6 09:49:19

NX10上切换模块的函数,如何切换模块






The NXOpen Session::ApplicationSwitchImmediate method is new in NX10.


To see how to spell "whatApp" change to the desired application in interactive NX then use Menu-> Help-> Log File and look at the bottom of the file for the name of the button you just selected.E.g.:
    "UG_APP_DRAFTING"
    "UG_APP_MODELING"
    "UF_APP_SFEM"


#include <NXOpen/Session.hxx>


static void switch_application_immediately_interop(char *whatApp)
{
    NXOpen::Session *theSession = NXOpen::Session::GetSession();
    theSession->ApplicationSwitchImmediate(whatApp); // New in NX10
}


admin 发表于 2016-5-15 22:00:47

NXOpen::MenuBar::MenuBarManager::ApplicationSwitchRequest   NX9的
页: [1]
查看完整版本: NX10上切换模块的函数,如何切换模块