|
采用此种方式可以使用*.show(),不会一闪而过,但是有弊端,不会在关闭窗口后自动释放。4 z: j$ z x |6 W: I
Public Function GetUnloadOption(ByVal dummy As String) As Integer0 N. n* Q8 L( Z9 O/ b
( b K3 `7 O) [$ R 'Unloads the image when the NX session terminates$ k0 d; ^ S( E+ A( Q k
'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.AtTermination! D! b( \9 H4 ~6 |0 ^1 l; J
0 a6 `$ J" }4 y3 P, { '----Other unload options-------
, \) D2 ~2 b- d3 j6 ] 'Unloads the image immediately after execution within NX
+ M- y6 t* k& H5 y9 u* [ 'GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Immediately& o! W* c b" ^, n W
# n& P! B9 a- @# Y3 [0 \6 l 'Unloads the image explicitly, via an unload dialog
- ?- Q9 @( Z$ ?0 P GetUnloadOption = NXOpen.Session.LibraryUnloadOption.Explicitly
! K% Y9 I. G' Q+ |2 G3 U '-------------------------------
9 |2 o0 |% d. v' c8 b% s$ e& Z& h: O0 n I* l! g7 ~& H* z7 `" F
End Function |
|