Hi,
To get a prompting message for application module, you can use the piece of code
Imports System
Imports System.Windows.Forms
Imports NXOpen
Imports NXOpenUI
Imports NXOpen.Utilities
Imports NXOpen.UF
Public Module query
Public UFS As UFSession = UFS.getufsession
Public NTS As Session = NTS.getsession
Sub Main()
Dim appModule As Integer = 0
Try
UFS.UF.AskApplicationModule(appModule)
' / Check for modeling /
If Not (appModule = UFConstants.UF_APP_MODELING) Then
' / Prompt message /
MessageBox.Show(" User not in modeling application ", "INFO", MessageBoxButtons.OK)
End If
Catch ex As Exception
End Try
End Sub
End Module