PLM之家PLMHome-工业软件与AI结合践行者

[原创] NX二次开发签名的方法完整版本,详细步骤如下:

  [复制链接]

2017-4-21 08:17:55 8363 1

admin 发表于 2015-2-25 13:00:05 |阅读模式

admin 楼主

2015-2-25 13:00:05

请使用QQ关联注册PLM之家,学习更多关于内容,更多精彩原创视频供你学习!

您需要 登录 才可以下载或查看,没有账号?注册

x

, K% E( q( y( v
4 n6 d7 J) I* l/ p5 k' r) ^1 f; v8 C" i
Once you have fully tested your NXOpen API application, you should "sign" it
5 p1 O* z( H9 H: gbefore distributing it to your end users.  Even if your end users also have
3 p9 [) A; X8 aaccess to the Author license which is required to load and run an NXOpen
. p) a4 t9 D0 `0 v# m( u' }application, signing it has its benefits.' y# Y. h. g8 i) F* O7 |; v: I

, w8 F( S4 V/ J" r5 c    - Your application will load faster because NX will immediately recognize) v6 Y) Y; g$ C5 I! |. J/ S  p
      that it has been signed.
7 Q1 P/ c4 l! N# h* o    - The syslog (Help-> Log File) will not be cluttered with the output from+ h3 V- x2 i+ J, n
      the multiple checks that NX will do to determine whether it can load
1 d7 H6 i; Q) p3 Z( `0 D* Q      and run the program.
! ~( ~) d/ p: m7 V; N$ x
4 {5 n7 V, E& z* Q( N2 m( o1)  C/C++, C# or VB only (Java: Proceed directly to step 3)& H) P) Z3 x6 b8 h2 u* B0 L) Q6 H

6 i: A: g# i! C9 C* I" P7 r    Add the NXSigningResource to your Visual Studio project5 {/ r3 [  \* b/ x3 ?  B" O

2 |- @4 v  v! K$ {    In the Solution Explorer, select the Resource Files folder and6 C' j6 U0 a2 D' \. ^, }
        <RMB>Add-> Existing Item+ O6 n/ K: s! Z, l+ W8 k
" ~  A" t7 U) I* S: R9 a1 q
    C/C++:* A- E0 g& y: _4 t
        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp5 X! {1 V: v( ?. K
    C# or VB .NET:
. K$ o  I+ a7 P) \: Q        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res: ]5 @' x0 ^8 z% z
        Select the newly added NXSigningResource.res and in set. S5 X7 v+ e% [* P1 O) V- U
            Properties-> Build Action = Embedded Resource' w  @+ g' l9 z3 U$ ]
3 @3 c7 c3 ?. T1 v# |1 k2 i
2)  Make sure the build configuration is set to Release then
7 W" k1 ~' R- N; b# p    Build-> Rebuild Solution+ ~' e2 W7 b6 w# \% S5 L
6 q. L' |- k1 _; l  m# [
3)  Sign the executable from an NX Command Prompt window:, r5 e# \/ W2 L4 Z( i
        You probably already have one open because you started the Visual
( ^6 U: L2 Q7 a- Y9 U* o5 u        Studio or Eclipse from it.  Otherwise:4 W: k' i2 m( ^) p" S
            Start-> All Programs-> NX#-> NX Tools-> Command Prompt) V/ I, u0 S+ {2 K2 _2 N
2 x- Z$ }$ ~: M+ A
    Java:+ f$ k7 W/ u( Q9 o
        signJar <path to your>.jar- B% H$ |- v; ?1 z  b  [

6 I, l& G2 w6 z! A4 x" n7 L    C/C++:
& {, \+ b4 `$ A0 ~: h8 z        NX8.5 and later:
1 M4 ~( E, Z; G! F3 G  n- P4 N3 ?            signCpp <path to your>.dll or .exe
* }& |. t% T( H$ B2 ]5 j        NX8.0 and earlier:! T7 K: W+ P! F1 p
            nxSign <path to your>.dll or .exe1 E5 w" @3 J+ x& o
8 v) @8 I9 ]* Q3 ~7 g& n1 m2 l
    C# or VB .NET:* N6 L# `! }9 U' t
        NX8.5 and later:
8 t0 [& w! G9 T1 w$ p; s$ P9 ~            signDotNet <path to your>.dll or .exe
+ v! A! D( U$ Y9 m* c, N2 J        NX8.0 and earlier:. G- a: U8 }$ \: n
            signLibrary <path to your>.dll or .exe; Z3 d% w! n+ H7 _$ W) ^! H" u

' E- P3 x+ x. t# P' f' E& W7 ?Note:  You do not need to use the path to the signing utilities because the. Q; a) y- t6 \) ?
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII" x. R; ^  @& `8 B" F" M
folders.
9 ~! c  f5 h% p6 v6 v  U0 k5 h6 k6 v& \, w
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

全部回复1

yejihu 发表于 2017-4-21 08:17:55

yejihu 沙发

2017-4-21 08:17:55

非常感谢您的分享和宽大的胸怀!
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ doTeam.tech
回复 支持 反对

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了