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 7619 1

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

admin 楼主

2015-2-25 13:00:05

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

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

x

0 ~4 a2 v* J9 J/ K
9 U2 `! t4 S; O6 j$ {: o! u  l0 D: }  Z$ L3 f3 I! ?
Once you have fully tested your NXOpen API application, you should "sign" it+ C1 q7 e# S% ?" f& c. B
before distributing it to your end users.  Even if your end users also have
5 r: C1 y2 T; Uaccess to the Author license which is required to load and run an NXOpen
# [2 y/ A+ q, oapplication, signing it has its benefits.  r& X! G8 q1 m; f' N( K7 r9 h9 Y

$ p- \7 |3 r7 i/ ^( q( r    - Your application will load faster because NX will immediately recognize
4 p, V) P" y; a; u0 Z$ P* k+ [5 j      that it has been signed.2 Q9 Y) `+ f5 H( I% l3 n* p7 l
    - The syslog (Help-> Log File) will not be cluttered with the output from
, f* y# h7 T8 {- Z8 w- ]) P1 T9 b      the multiple checks that NX will do to determine whether it can load
, ~3 w2 m( e( p* H; @      and run the program.
8 ~2 l7 d8 [2 c# `+ A8 \- r8 N
4 X5 k9 S1 e  i! \. `1)  C/C++, C# or VB only (Java: Proceed directly to step 3)
  m( |0 X1 b7 ~8 I
3 Z/ B: o$ O# }4 o7 u  K( w7 l    Add the NXSigningResource to your Visual Studio project
& x  {( M; I9 j' M( V* K& k2 ^% |* A6 f" ~; o: T9 y
    In the Solution Explorer, select the Resource Files folder and! P0 e( I) M9 u5 t/ v% z2 R
        <RMB>Add-> Existing Item
4 M  E6 g( D0 {3 h
- t: P  a/ N! B" K    C/C++:
/ o  B  h& g3 p' f: ~2 P" n        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp) x: O9 ?2 ?) d- @
    C# or VB .NET:
# c4 L' M  c1 f0 b  m1 l        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res
0 {3 u) k: r: f: o( e) D* p        Select the newly added NXSigningResource.res and in set" C  I2 M* f; \2 U$ S# Z
            Properties-> Build Action = Embedded Resource
! m/ f: w% n6 u! [: I0 B
" G5 W+ s' L' Z, b. i* o2)  Make sure the build configuration is set to Release then
. P" P* d4 {8 @# q    Build-> Rebuild Solution& X, R* s( d2 e0 q3 l: F' B$ R

5 L2 \+ q1 H. H+ g4 ^1 s3)  Sign the executable from an NX Command Prompt window:* i; M2 n. G! s  k! D
        You probably already have one open because you started the Visual" W) E1 m+ ]0 T4 C5 V3 _
        Studio or Eclipse from it.  Otherwise:+ N4 W# f% l( `
            Start-> All Programs-> NX#-> NX Tools-> Command Prompt: `4 l9 g% J: x* ?
/ U/ P  C+ ?9 q8 S
    Java:
. M/ G% _7 C4 b! v, F5 [3 C        signJar <path to your>.jar
4 W& S8 m& z( U( S" u( @  u' s) }- }! h+ y9 |
    C/C++:$ ^: O0 f% g0 v
        NX8.5 and later:
1 T( o* t4 E7 w* n; \+ f& `            signCpp <path to your>.dll or .exe
4 ?7 A% i# O  {        NX8.0 and earlier:. P" q: }/ q  C5 y& L
            nxSign <path to your>.dll or .exe
, i" x* R; [0 R9 s2 A$ ]4 `" @& Q4 `/ L5 ?* k; U
    C# or VB .NET:0 O9 m* _* @1 Y1 f+ f2 w) t& d+ f
        NX8.5 and later:
$ }4 j+ y3 m3 _6 N            signDotNet <path to your>.dll or .exe
+ q" {+ X% e9 q& p2 O1 `- |$ ^        NX8.0 and earlier:
+ D$ J  T) h5 F. {& l& v            signLibrary <path to your>.dll or .exe5 v/ G, v: C( q0 ]& z: F, ~2 u0 Z

. Z( a+ Q+ _+ ^5 Z) \( \1 k- T# oNote:  You do not need to use the path to the signing utilities because the0 Y  E" r& b8 \* ^1 A( r: p! H
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII  T+ b& H% C2 I
folders.
4 t, i* X3 O. c, y4 g7 l, |1 ~- q: `2 k, S$ D$ ?2 S  @
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了