|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
9 j3 q% r+ @* G* f, H
/ A5 W' N3 e4 t
/ ^0 q( j7 o s9 |& I) w- KOnce you have fully tested your NXOpen API application, you should "sign" it3 j4 g& _9 x( l5 k3 l( G9 \
before distributing it to your end users. Even if your end users also have- v+ L% } y* Y1 }1 I
access to the Author license which is required to load and run an NXOpen$ h- @( z% Z r. Z
application, signing it has its benefits./ ^& s' l$ |2 V, _" F& a
6 q" l9 {9 P- w) X$ j. X$ ]
- Your application will load faster because NX will immediately recognize1 z0 y- Z0 x/ M1 C
that it has been signed.
T$ z. c$ D( U% m9 l - The syslog (Help-> Log File) will not be cluttered with the output from
! w( @: q! S* a6 Y; q4 D the multiple checks that NX will do to determine whether it can load. x) S9 H9 I7 q& {
and run the program.
2 |' J8 ~ U: W1 C1 C1 t
M0 N% O7 g0 @ ~! a: Q# i1) C/C++, C# or VB only (Java: Proceed directly to step 3)0 |5 M; G k E f3 G) c/ m
: F* H+ }5 ?8 M/ D* p7 E: S Add the NXSigningResource to your Visual Studio project
4 N% U5 ]) B0 ~' ?! L( x7 @' C1 t* k
In the Solution Explorer, select the Resource Files folder and8 H5 F2 _+ Z, ?& F0 p1 U
<RMB>Add-> Existing Item
6 `8 b" e3 y: q+ G8 @! }" a2 l
0 B4 }+ `& ? o0 c8 N C/C++:0 u+ b- @+ ?( k7 q% S' N+ p" X; C5 }
Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp
" w& m- A# Y; e, M1 k C# or VB .NET:
# u) M! C. Q. X' I* D Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res3 U8 i* G: W3 ]/ s7 e, O
Select the newly added NXSigningResource.res and in set! m4 v- g- c4 I
Properties-> Build Action = Embedded Resource& B$ Y( x0 `; q3 X8 c7 t' ^( F
; T M! F5 w A0 a7 d# ], s
2) Make sure the build configuration is set to Release then8 Y A+ K; Z- Y* W! m& L b
Build-> Rebuild Solution; u& s9 A$ R5 Z6 p. u+ S
3 @) p2 k: g2 E( F9 o1 V6 v
3) Sign the executable from an NX Command Prompt window:
) C3 W2 ^; z/ U% m4 u You probably already have one open because you started the Visual% e, P( L1 o$ \9 J. ^
Studio or Eclipse from it. Otherwise:
) Y1 B% q( \# m B4 q Start-> All Programs-> NX#-> NX Tools-> Command Prompt8 L/ B) B. q8 s. g) e! x
/ S/ V0 Q+ U5 H4 ^- ]+ n: Y Java:3 |( I* w. o* U' V0 Z
signJar <path to your>.jar/ x6 M( h0 s4 A. M" s
5 G/ K- ^1 G, @3 A8 i
C/C++:; H7 O( u; I2 i" V0 l( A
NX8.5 and later:
5 b1 K& Z- \* p( n signCpp <path to your>.dll or .exe
. B8 D- v6 k; l6 X/ \. n NX8.0 and earlier:6 ?) X t0 J4 [$ v
nxSign <path to your>.dll or .exe' [8 ]! }' P% K4 E
+ x2 E) j8 G! c4 c' ]8 l
C# or VB .NET:
6 U5 g7 Y1 D: n' f NX8.5 and later:
" L% L9 s" a9 S0 y$ ? signDotNet <path to your>.dll or .exe \: S5 s, \: |4 t! ]
NX8.0 and earlier:
) b+ o+ o& I/ P0 F signLibrary <path to your>.dll or .exe) P9 n5 R+ M( |
: \ r# M( m! S" K ?$ M1 Z
Note: You do not need to use the path to the signing utilities because the1 O- [1 V7 W* I9 P
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII/ @3 P+ F+ o: k0 ^1 o* q. W" C: K
folders.
- h# N0 ]) j( ]' V d5 o# |7 D; o3 \3 _
|
|