NX Journal Application changes
2019/12/01 categories:NX Journal| tags:NX Journal|VB|
You need to change your application to a compatible one, such as after opening a model in the NX journal or after opening a drawing. At that time, I wrote a program to change the application.
To change the application, just pass the name of the application you want to change to “theUI.MenuBarManager.ApplicationSwitchRequest”. As an example, the program is changed to modeling.
VB Code
Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.UI
Module module1
Dim s As Session = Session.GetSession()
Sub Main()
Dim theUI As UI = UI.GetUI
theUI.MenuBarManager.ApplicationSwitchRequest("UG_APP_MODELING")
End Sub
End Module