|
采用此种方式可以使用*.show(),不会一闪而过,但是有弊端,不会在关闭窗口后自动释放。0 K+ H5 }2 D+ \+ f
Public Function GetUnloadOption(ByVal dummy As String) As Integer8 S! c4 R( M8 _, Q, Q1 Y
9 a' N) h$ j9 i% R# a! e1 N+ i 'Unloads the image when the NX session terminates+ F& S+ T0 |# N# V
'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination4 g' a/ Z+ h8 i( A
4 }0 j3 A4 _% g7 G: _% [, {
'----Other unload options-------6 o% g6 c3 |. }2 J# J9 h
'Unloads the image immediately after execution within NX# `& _( t+ ]6 W4 V+ q3 E7 z
'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately
2 @* g0 @2 H+ Z5 Y7 H
1 R7 U! m( v, Q( v: Y 'Unloads the image explicitly, via an unload dialog
) S- a$ W. ]- i( P# j, D0 b4 k v GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Explicitly
$ w. n/ y0 L7 `: b9 A '-------------------------------. o9 c+ M% c' y" {" R% m
& a- T2 a' t: s- L
End Function |
|