PLM之家精品课程培训,联系电话:18301858168 QQ: 939801026

  • NX二次开培训

    NX二次开培训

    适合初级入门或想深入了解二次开发的工程师,本培训结合ufun,NXOpen C++,大量的实例及官方内部的开发技术对于老鸟也值得借鉴!.

    NX CAM二次开发培训报名 NX二次开发基础培训报名
  • PLM之家Catia CAA二次开发培训

    Catia二次开发培训

    Catia二次开发的市场大,这方面开发人才少,难度大。所以只要你掌握了开发,那么潜力巨大,随着时间的积累,你必将有所用武之地!

  • PLM之Teamcenter最佳学习方案

    Teamcenter培训

    用户应用基础培训,管理员基础培训,管理员高级培训,二次开发培训应有尽有,只要你感兴趣肯学习,专业多年经验大师级打造!

  • PLM之Tecnomatix制造领域培训

    Tecnomatix培训

    想了解制造领域数字化吗?想了解工厂,生产线设计吗?数字化双胞胎,工业4.0吗?我们的课程虚位以待!

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

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

  [复制链接]

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

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

admin 楼主

2015-2-25 13:00:05

请使用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  ]
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了