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

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

admin 楼主

2015-2-25 13:00:05

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

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

x
  I9 ~. n/ w1 B9 s4 p
  t4 a8 w) H/ D# G2 w; Y
9 U' s1 i, f9 J, d
Once you have fully tested your NXOpen API application, you should "sign" it% o! t* ]# I; I- c8 f
before distributing it to your end users.  Even if your end users also have
9 J9 \- M0 ~' _/ p2 taccess to the Author license which is required to load and run an NXOpen
0 z; a! e* G/ E, r. n" f7 qapplication, signing it has its benefits.
( P7 E3 t" u- R1 A! M+ |) P! h
4 j' m+ o( Q2 o7 A# i/ e9 V    - Your application will load faster because NX will immediately recognize
* r; l3 u5 {5 R0 ]- ~4 _      that it has been signed.
% U! |) D8 E' C# I    - The syslog (Help-> Log File) will not be cluttered with the output from
4 o, j8 P) V- S- ~4 f! A/ M      the multiple checks that NX will do to determine whether it can load
' N9 f) T% t7 x% g      and run the program.
5 n8 c+ W0 m3 @0 F3 ?4 H! I. {! w
1)  C/C++, C# or VB only (Java: Proceed directly to step 3)
0 f1 j9 {4 x, M2 ~9 d
2 ~) M) n. n/ ]7 v& I    Add the NXSigningResource to your Visual Studio project: [0 h8 G- L5 g% D4 r0 t9 X
- l% A9 c( I$ c* g$ a
    In the Solution Explorer, select the Resource Files folder and! Q4 [& Z# ~. `) _; |% q
        <RMB>Add-> Existing Item, [1 J4 U( f+ X0 j
5 l/ f. X+ B  ]9 t! q; z
    C/C++:* p- |' r/ t5 M+ l) [+ t
        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.cpp. V1 v+ q( I) Z# A3 _- @8 f# @& {
    C# or VB .NET:
  z5 _& x4 Z- P2 Z        Browse and select %UGII_BASE_DIR%\UGOPEN\NXSigningResource.res. ~3 K5 R% q6 Z0 w& a# I- `
        Select the newly added NXSigningResource.res and in set+ f4 u" d" ~  [. H1 {- p
            Properties-> Build Action = Embedded Resource: E8 X6 ~3 f+ A) _$ p1 p
( A: J: h) N' h. A2 t
2)  Make sure the build configuration is set to Release then% V; \6 G' @. o8 Z: \2 C
    Build-> Rebuild Solution3 ]& F- M8 e* _& D
+ Y( X3 a. s# Y) f8 t" I0 |
3)  Sign the executable from an NX Command Prompt window:5 a  [1 _, B: v9 w
        You probably already have one open because you started the Visual
4 `( c3 I7 o+ R! R5 g8 k7 M+ ~        Studio or Eclipse from it.  Otherwise:1 C" T8 x% H2 U6 L" b6 o$ W
            Start-> All Programs-> NX#-> NX Tools-> Command Prompt
, y3 V+ u# Z& p: e8 T: d7 ?9 d
0 _7 W- O' o! u: S3 u: z    Java:1 Q: q, i" |& @2 j
        signJar <path to your>.jar
& e, i* R# v- E4 n2 {
9 r  U0 P/ Z/ l8 Y9 e; C    C/C++:: P5 `+ U5 @/ z% C
        NX8.5 and later:( Z1 J6 G( E7 g3 O
            signCpp <path to your>.dll or .exe6 {$ O) M+ J; z  w
        NX8.0 and earlier:
/ q, L2 b+ n, @* f6 \- e            nxSign <path to your>.dll or .exe" l8 C3 _$ z/ j% j  H
8 l; u  u  S8 W3 p
    C# or VB .NET:: {# F  b7 j/ z# z  M
        NX8.5 and later:/ G1 H, W( E- G  w4 I. ~- `& v
            signDotNet <path to your>.dll or .exe8 J5 E9 d: j. m1 B/ X- t  `" P; K& G' L/ K
        NX8.0 and earlier:
  y! Y: D1 v; v7 c# x7 v            signLibrary <path to your>.dll or .exe
  J9 s. ^/ H  x% V; u; r
% s" m4 M2 [0 \' WNote:  You do not need to use the path to the signing utilities because the
+ E( }% s5 j5 M+ p9 e* z! ~0 ~PATH of the NX Command Prompt shell already includes both the UGOpen and UGII; g3 W4 C" }# d9 Z
folders./ x9 L6 u4 k3 j% R; r# s

, n- K/ H4 E5 [3 A# C9 ]2 K
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了