|
采用此种方式可以使用*.show(),不会一闪而过,但是有弊端,不会在关闭窗口后自动释放。
: i1 J% A% h; k3 H3 I, _ b Public Function GetUnloadOption(ByVal dummy As String) As Integer
. ]2 d. T# t% q! x, c4 v1 X m8 ]8 O. F" v- J0 @' [, n
'Unloads the image when the NX session terminates
* \' }3 n+ t- l( {7 r6 v! _0 } 'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination
& C! N6 u! G& h7 l0 N0 {5 o+ n5 w7 z9 a4 E9 f% W' }1 d
'----Other unload options-------
: v) |* P, c- p, ] 'Unloads the image immediately after execution within NX
0 A0 J1 ?; y( ^: w7 O5 v4 u1 O 'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately4 t r( p% S) Q
, V/ A- |: m8 j4 l
'Unloads the image explicitly, via an unload dialog
! h0 r+ A6 Y4 T& d GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Explicitly- {# J1 }: S# w3 G% I6 I
'-------------------------------' B2 S0 h1 E8 Z/ I F
! {& a2 N9 J) h) o9 a, V
End Function |
|