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

[资料] UG NX二次开发的Visual Studio 的配置方式

[复制链接]

2013-10-21 21:36:19 5012 0

admin 发表于 2013-10-21 21:36:19 |阅读模式

admin 楼主

2013-10-21 21:36:19

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

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

x
1. Open Microsoft Visual Studio.% T% Z1 B) S! o/ m. U+ F8 E6 u. f
2. Create a new VC++ project using the NX Open AppWizard.5 M$ P' b7 d& B2 i0 p
       Create new project as:
" o; _: |9 i! M" n( H4 k- J1 k( {
        2.1 File->New->Project.
- p( ]( s( Y8 C: ?- f) _        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
1 f( E: q5 s: b( A% `            Enter name as ExecuteCheckerAndGetResults. Click Next.
9 s2 i! k$ P$ e/ T6 o- I
        2.3 Under Application Settings, select 'An Internal application that can be
4 j* _! D( c5 M" t! A            activated from an NX session (DLL)'.
; D* H; Q  d  M; E
        2.4 Select C++ for What language would you like to use in the generated
$ c0 l% g" `0 c1 e            source files. Click Finish.

4 N: d3 O: Q! T& ?5 `& B    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project% J# [7 S) Q5 r1 q; H' G- C
       pull down and select "Add Existing Item...". Select the file using the popup window.
& ?4 U8 x' A' g# {6 G/ E
    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.6 @/ m1 \) ~8 w- d
       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.( N# W+ p  }/ [( R
       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
" O# D& o  e: r       , g* \# x# V6 y8 Z" N+ a  H! ^
       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
$ [/ U/ Q& {* G4 P9 M. @       Include Directories.
4 N& v7 H( ~4 L  ]4 _, W       : L+ W/ |: R, H2 i) l1 r. k  O
       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional+ G2 X$ ~) {+ N/ i" W4 j) Q
       Library Directories.
2 w' Z8 b: w* ?4 `# M1 H% B# K) X      
- B5 T% T) ?  L       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
* M0 Y) W3 ~1 Q       existing in Additional Dependencies.
( h7 r' r7 U1 p% h% ~6 X       Click OK button to close Configuration Manager dialog.
  l! `; t2 k) a

" l2 _$ z$ e& P; [; @

& n* r0 |$ Z6 |, |% ~. S    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
$ a0 e+ n7 D7 B3 b) O    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
$ C9 Z$ R; [% |* \* S# Y* Q* ^: D' z7 Z2 W, M- k
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了