Showing results for 
Search instead for 
Do you mean 

Translucency does not work after ApplicationSwitchRequest

[ Edited ]



In NX9 i need to switch from modeling to drafting and enable the translucency (shaded views).


Below sample code contains 2 lines in sub main.

The translucency is not enabled when i switch to drafting application. When i comment the first line (no app switching) and run the journal directly from drafting application then translucency is enabled.

Option Strict Off
Imports System
Imports NXOpen
Imports NXOpen.UF

Module NXJournal
    Sub Main (ByVal args() As String) 
        UI.GetUI().VisualizationVisualPreferences.Translucency = True
    End Sub
End Module


I think the problem is that NX is not yet switched to drafting while running the next line.

How can i make the journal wait until switch to drafting?

Any ideas how to resolve this are welcome.