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

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

  [复制链接]

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

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

admin 楼主

2015-2-25 13:00:05

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

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

x

- {: I  f: T! {* F2 v# ?* {9 [3 j& _9 C

. w) x* \/ [6 ?9 i( tOnce you have fully tested your NXOpen API application, you should "sign" it$ y. ^1 u& E+ a* k1 H- m0 R
before distributing it to your end users.  Even if your end users also have
1 y5 Q/ l' C6 b" ?% C+ _- w4 H4 Daccess to the Author license which is required to load and run an NXOpen
8 f8 M- p) g4 I1 c. yapplication, signing it has its benefits.9 r- }' _" Y9 {0 S" d
9 F8 G3 v4 b- G! H
    - Your application will load faster because NX will immediately recognize
6 {6 i2 \1 b! w( V! z4 A      that it has been signed." x4 y# O* g$ s
    - The syslog (Help-> Log File) will not be cluttered with the output from. z5 E: q- r  Q# d- Z
      the multiple checks that NX will do to determine whether it can load
2 ^: [% T7 C$ w: P      and run the program., D7 o5 R8 {; [+ H

6 ^! N! q+ M9 J1)  C/C++, C# or VB only (Java: Proceed directly to step 3)9 A* k4 Y, }8 t! z9 T' j
: v# i# |; s# N
    Add the NXSigningResource to your Visual Studio project
# [% O' G7 d  t: W2 E; Q  M+ @( d, y. \5 B
    In the Solution Explorer, select the Resource Files folder and
: m$ m6 t% u6 T6 q$ T        <RMB>Add-> Existing Item
4 a9 K# H1 m. H7 z4 q& V8 F# G! T, I9 u0 X5 p- [
    C/C++:
' ?# u" D' e' D! Y7 u* e        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp
& m& M# D4 u/ \    C# or VB .NET:  u3 @- L5 N% w  E6 x
        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res1 q/ }/ h0 [# v- [
        Select the newly added NXSigningResource.res and in set
% ]7 W8 j  P: f) L, C            Properties-> Build Action = Embedded Resource1 m1 v( v; Q/ V
& Z, v. ]: v" x6 F$ R$ r+ D
2)  Make sure the build configuration is set to Release then
8 I0 e$ X2 t* \, b) a! F    Build-> Rebuild Solution  V4 S* N. |* S( C' O# y# h3 T
; l) e# I/ j7 I6 M% F7 T6 g, S- S% X
3)  Sign the executable from an NX Command Prompt window:4 u8 n% C. p" W% _9 \9 g$ U- Q
        You probably already have one open because you started the Visual4 |* y9 I% z- `9 q4 @) k# D
        Studio or Eclipse from it.  Otherwise:
3 P: z7 h. O/ D7 Y- J/ u            Start-> All Programs-> NX#-> NX Tools-> Command Prompt
6 o& x1 z7 G0 L4 T1 f5 r$ U0 _" s7 y% U7 H; V/ o3 \
    Java:- D! y! e9 g7 r! O9 ~
        signJar <path to your>.jar
3 l" X( _0 Z# k; z4 H& }' |' o( h4 i. H% l  h9 J- A3 U: }
    C/C++:& L; @+ e( F9 K. K5 I* Q$ W
        NX8.5 and later:5 R( b4 a1 L# a& m. X0 Q
            signCpp <path to your>.dll or .exe
. p5 b7 ^1 W5 @0 H) d1 l/ @        NX8.0 and earlier:9 B2 G5 m% `  a0 b
            nxSign <path to your>.dll or .exe
7 e! j! {  m4 D/ I& S* ^$ K( m" }" ~  B/ ]
    C# or VB .NET:3 y; B$ C" R- ~* p
        NX8.5 and later:
; L* K5 }9 C4 @0 Q/ n            signDotNet <path to your>.dll or .exe/ `% _+ G, _& L. C" X
        NX8.0 and earlier:
2 ?8 Z* ]" D( f8 s3 L: J            signLibrary <path to your>.dll or .exe
: _7 m: t& E# k  I! f7 v2 t. A. y: F; G. q
Note:  You do not need to use the path to the signing utilities because the; [  y# B$ j# m/ F; z
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII
" E; O) d8 L% L  I0 Dfolders.
& f, ]8 c$ o2 o& Y1 t1 ]- K
: Z+ T* r: _2 T
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了