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

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

admin 楼主

2015-2-25 13:00:05

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

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

x

8 ^; b! F2 W2 E% T" k( y+ x$ ~. k6 B5 f# o

# o' Q' ]( k1 H3 T& ^# lOnce you have fully tested your NXOpen API application, you should "sign" it% t' A+ U7 e7 Y3 h% [; N8 r
before distributing it to your end users.  Even if your end users also have
( V- q" s3 L. U6 Q3 K8 V1 I. maccess to the Author license which is required to load and run an NXOpen
# |( a, D! \, D0 a. japplication, signing it has its benefits.
: @3 [9 g! r% `& v# ?9 E
: ]* N. F/ w5 t. n    - Your application will load faster because NX will immediately recognize
- D9 C  @5 {) H  V' D+ m      that it has been signed.
3 H% G; u8 r' B    - The syslog (Help-> Log File) will not be cluttered with the output from  ]$ ~% D& `% z. g
      the multiple checks that NX will do to determine whether it can load
, d/ w. m3 u/ i. y3 ]) O      and run the program.
) x' c; _/ R/ A$ [7 i2 E" b7 o$ G) k
1)  C/C++, C# or VB only (Java: Proceed directly to step 3)
6 k  I- J+ D  }% a& d# s% Q* V3 ^' |- a
    Add the NXSigningResource to your Visual Studio project% c" Q" y" X) `0 t. X
; Z! f: u- F7 Z3 k. K! @: t; d9 x
    In the Solution Explorer, select the Resource Files folder and4 O  h  k+ a4 w2 _& N, U) G9 I
        <RMB>Add-> Existing Item' }6 s$ V- i- ]" F" s! w& b
1 m$ p$ a! A, }6 J% ~  |
    C/C++:; ^7 r8 m$ f1 J
        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp7 f0 d2 k) S2 m9 c8 S$ ^! @+ e& `
    C# or VB .NET:  q0 k5 ~8 L4 l4 ]" m: a; a
        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res
6 ~9 H  `1 _8 P: B+ O( B/ X7 U        Select the newly added NXSigningResource.res and in set
) S) }3 q) H2 ?3 c& j2 r            Properties-> Build Action = Embedded Resource: o$ s0 N* |* X$ V+ \. {0 u  M: A
8 s* e" q$ {: v' U" L, R
2)  Make sure the build configuration is set to Release then( Z2 X$ K, q* \9 V/ G" U% t
    Build-> Rebuild Solution
1 k8 @3 m$ O# @  ]4 ^9 d: U) X' G3 Q  [4 Z( G0 _" e
3)  Sign the executable from an NX Command Prompt window:
( V& X4 X7 x; {! L. D$ q* ^        You probably already have one open because you started the Visual& M, V( q6 W5 @
        Studio or Eclipse from it.  Otherwise:9 e) h. D) c9 S; M" g/ b" ?2 }8 e2 H- o
            Start-> All Programs-> NX#-> NX Tools-> Command Prompt# f. G( s. U; J/ k

7 o$ I8 ?, y. _$ |    Java:3 S  p) r# n" m/ x. ~
        signJar <path to your>.jar
( p0 X/ l2 f. a# H  n
% \: c2 ~. s/ X4 {7 Z    C/C++:' X- T% T: f6 C) u4 w. R( ?
        NX8.5 and later:' m' l$ `( |. |' P8 y  `
            signCpp <path to your>.dll or .exe7 x. \7 K5 b3 W2 w
        NX8.0 and earlier:
6 B8 z$ k0 W6 ]( i$ D+ {            nxSign <path to your>.dll or .exe6 |- }1 C1 y! ?7 E% a, `
: F1 |$ \  s+ P7 [* ]1 G
    C# or VB .NET:
+ x) u( x# d4 ?* w  h9 \+ K        NX8.5 and later:4 n& ]' ?8 B% q( P: H+ d9 J
            signDotNet <path to your>.dll or .exe
- {; b$ p& s- C; H0 t% _9 e        NX8.0 and earlier:1 q4 K4 r! f- D* [2 [# \
            signLibrary <path to your>.dll or .exe
+ L. {6 U; z; b4 z3 h; h: K" @
. ~+ a: P0 ~- S: A) LNote:  You do not need to use the path to the signing utilities because the9 l- G& e$ v0 u/ z
PATH of the NX Command Prompt shell already includes both the UGOpen and UGII0 h  l9 u# m! k; ?$ r1 _
folders.
: `* e  T9 c- j! \) k4 T+ S! h7 U) K0 i# `
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了