PLM之家PLMHome-国产软件践行者

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

  [复制链接]

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

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

admin 楼主

2015-2-25 13:00:05

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

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

x

: t2 \5 X# }5 Y9 L) `3 f/ D2 A5 P5 A" J+ ~
- e" L$ y7 O' w
Once you have fully tested your NXOpen API application, you should "sign" it5 K3 ^  q# z1 Q2 l& G# ~4 U
before distributing it to your end users.  Even if your end users also have' a6 M3 E* K$ S# s) `
access to the Author license which is required to load and run an NXOpen6 _, w+ u! }5 T8 H
application, signing it has its benefits.. B$ T6 A6 d& E& l  S
: Y* Q! d5 ]. g. ~/ R1 o4 S) i% w
    - Your application will load faster because NX will immediately recognize
- f  [" m" y) }- `3 e# J      that it has been signed.. b0 [. Z& z3 M
    - The syslog (Help-> Log File) will not be cluttered with the output from
) p& g" P$ v+ F" ?      the multiple checks that NX will do to determine whether it can load0 P: H; C' B3 Z4 M  N. k
      and run the program.4 D, x" X7 q* n# z  d

  B; D' {# ]7 @9 T1)  C/C++, C# or VB only (Java: Proceed directly to step 3)" p9 r) j, Y$ P' k! V# K9 N
/ O, h: W2 G' \
    Add the NXSigningResource to your Visual Studio project) p6 [! N3 t: p# x. V

- M6 t8 Q3 E& u. G1 M. O. e    In the Solution Explorer, select the Resource Files folder and
) W% ~4 r5 n& H8 R8 V1 l        <RMB>Add-> Existing Item4 p/ d( \! c, l, }

2 u5 v1 p# n/ r6 p2 ^, ^    C/C++:
9 j+ j8 X7 l& S8 M  X- v+ f: s        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp
( W) w. E( z! I. {# `# s8 l  d4 q    C# or VB .NET:
2 o1 a/ s- L  L' Y- H        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res3 j6 T- E9 _3 E9 s3 B
        Select the newly added NXSigningResource.res and in set5 T, X: y" F. R# g
            Properties-> Build Action = Embedded Resource
0 t; G" x1 I* T+ {. S& U) a( O- @% @4 E3 @( |
2)  Make sure the build configuration is set to Release then
) d/ a& V3 A6 {7 M7 S    Build-> Rebuild Solution  D1 t$ r6 }" W. Q$ [
1 Z+ x. H! ~6 b1 }
3)  Sign the executable from an NX Command Prompt window:4 j) J2 W$ P6 _# B2 ~; H
        You probably already have one open because you started the Visual
' ^0 I8 }3 r, f; N        Studio or Eclipse from it.  Otherwise:
- u. S9 p$ y- h            Start-> All Programs-> NX#-> NX Tools-> Command Prompt
" P7 o9 }+ {' j" d( c2 m+ N" _' ^- U& _
    Java:% f0 N; [& e4 @+ Z
        signJar <path to your>.jar6 \# U/ c. l9 G6 ?8 P

2 s* b* ^7 R) y' H: {  a7 x    C/C++:; S; h: L) Q" @9 t
        NX8.5 and later:0 f9 p6 G* X# A* K3 R6 v# U
            signCpp <path to your>.dll or .exe5 r( }7 x6 p4 p& j3 [
        NX8.0 and earlier:* k! x5 g+ N6 G8 b: Q9 `# B5 ]
            nxSign <path to your>.dll or .exe
+ ]' k, E4 A. Z& ?' W- S' }; H0 y6 K4 Y
    C# or VB .NET:' L( G' L+ c( I. o+ {
        NX8.5 and later:
% b0 t& T( K9 N6 k2 i            signDotNet <path to your>.dll or .exe
, q* t0 H- a4 h  \( u        NX8.0 and earlier:1 o& T- m7 f6 v  X
            signLibrary <path to your>.dll or .exe0 B" i+ p! N8 Y5 i, n! N/ ?

. }" s/ w  j* v9 x8 k' m7 oNote:  You do not need to use the path to the signing utilities because the: R7 o% F8 ~" v$ l9 ]
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII& E, x1 D1 S5 M
folders.8 o& V/ |- p; _& O+ P  H% _$ `

8 P, _5 N+ s& t7 X
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.diantuankj.com/ 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二次开发专题模块培训报名开始啦

    我知道了