0 E8 n9 c0 \4 e+ [3 j) y- F! D0 B ( D( c4 @" s$ y$ P* @ $ {" ]* i& A7 q8 I9 N. }( z. `' q6 d8 G- O
6 J! W0 g% H5 Z' _! p" b% _
The NXOpen Session::ApplicationSwiTChImmediate method is new in NX10. 5 E: y5 ]3 j1 A3 h' D 7 F \2 \; v" M z3 ]% X* o R3 W/ K" y& G& F- }* R
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.:* @2 y/ f' w% @4 i
"UG_APP_DRAFTING" # H' j0 p l# f "UG_APP_MODELING" ; r- R% ~& \" x1 n# `8 i- U "UF_APP_SFEM" $ k8 \( B) `8 ?# N8 M5 ]/ I# ?% N( b* F) c, F# m/ C5 I( F) d
. z- E7 X; Z _
#include <NXOpen/Session.hxx>$ I. m! u# [& i6 W
2 U3 L# g7 R9 C0 `8 E ' c4 M( W$ H* X/ }& L! F' r' `' |static void switch_application_immediately_interop(char *whatApp) 7 Y- T1 `! j4 d* o{+ c' `) h$ Z& ^5 a
NXOpen::Session *theSession = NXOpen::Session::GetSession();& ^$ y5 o0 M% _8 o. H! g3 V
theSession->ApplicationSwitchImmediate(whatApp); // New in NX10 ' H8 F& V$ @3 {' ~, u7 n. p}% }, D; ]8 w8 }( w% [6 h