|
请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!
您需要 登录 才可以下载或查看,没有账号?注册
x
& h: ^( @& m" ~+ _- A& x
; q7 J5 w2 I; i. e1 p7 B
, s6 }& M R+ \/ V: z3 W" tOnce you have fully tested your NXOpen API application, you should "sign" it
, b; u4 n: u% e9 f2 T5 c: Y: Dbefore distributing it to your end users. Even if your end users also have8 U# L" t7 u9 a V* \
access to the Author license which is required to load and run an NXOpen' k" P' e5 W$ B; C5 V
application, signing it has its benefits.
1 K7 d2 K2 i- W& B+ Q6 c4 p$ N
6 T' p6 Q" g I% @) v' `. { - Your application will load faster because NX will immediately recognize( C2 R% w# C0 Q+ q) S9 x! T
that it has been signed.& l# l+ }( l6 `* _- B. T$ ?
- The syslog (Help-> Log File) will not be cluttered with the output from
' {+ _8 t- c8 Z6 V; r the multiple checks that NX will do to determine whether it can load
8 `3 q# r: H, K9 J- ?# a) L and run the program.
0 q, M# I3 G% D& |* S2 c! G( n0 o
1) C/C++, C# or VB only (Java: Proceed directly to step 3)
& `; x8 {: W# D7 `: Z. u3 {# S
# H5 r+ U0 ^, c, l f, W" \9 u Add the NXSigningResource to your Visual Studio project0 D1 t( [8 I+ f2 e6 E! J
: d1 J. ]7 {4 Z8 S% w2 C8 s
In the Solution Explorer, select the Resource Files folder and" n5 F h B. m3 u! }
<RMB>Add-> Existing Item1 ^( k* B9 u L
& o! F# B1 A V
C/C++:
- T. A& ~6 [) S( U" }6 \) x9 T" w# Q Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp
+ g; {# e; L% U; o C# or VB .NET:
R6 o9 F% P4 G Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res7 \( V6 b8 |8 J' w% G i' Q! _
Select the newly added NXSigningResource.res and in set. x, D, w U* [: h" S
Properties-> Build Action = Embedded Resource6 R d4 M3 l5 R: {1 l7 `1 N1 B
6 ?# }6 @0 [8 X, p8 w2 L% C
2) Make sure the build configuration is set to Release then$ T0 ] }9 g. ~3 k, K u% z) g; p
Build-> Rebuild Solution: J) R/ u5 e& w- P$ P
# _. I1 R3 a) c Y& Z+ q
3) Sign the executable from an NX Command Prompt window:
5 y* P2 M' L# }& J2 [. W You probably already have one open because you started the Visual
c5 U* t/ @/ ^3 D; d$ B Studio or Eclipse from it. Otherwise:6 P% W) M% A, R- h* o4 ]
Start-> All Programs-> NX#-> NX Tools-> Command Prompt
. }8 @6 n8 }8 e2 V5 v0 b8 M2 Z1 ?& g0 X; v5 m- \( S: B, ^
Java:
( I" h" A! L/ {+ L: d signJar <path to your>.jar; G$ q2 q/ k& n4 Z5 X1 n
" J0 ~6 ~: B/ l1 J7 V
C/C++:
# r0 q- a" L& Y% I/ [ NX8.5 and later:
]& e8 O* T2 a# [" b signCpp <path to your>.dll or .exe* P5 J" M% Y4 U# l
NX8.0 and earlier:% [! _7 u4 ^: X) {) q5 m
nxSign <path to your>.dll or .exe
5 D# D3 a4 k: e0 B% |6 v% j/ o. }4 X0 J! v3 o( D. g$ w Q( A9 f
C# or VB .NET:
! A \: {9 c- K+ f0 f6 c NX8.5 and later:8 |; J S( E5 `) C! ]3 T" A0 a
signDotNet <path to your>.dll or .exe
( C, l* P9 y3 r; o* V' B NX8.0 and earlier:4 k- `% f2 V. `: c+ B
signLibrary <path to your>.dll or .exe* n4 F, d0 D" G5 _
h J V8 d; n! sNote: You do not need to use the path to the signing utilities because the3 c2 g L: K& v
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII9 V2 m' F- i7 _' C
folders.
- o# f1 i7 S$ s1 Q1 x( G1 _1 f5 q. J* \8 T# X ]
|
|