PLM之家PLMHome-工业软件践行者

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

[复制链接]

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

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

admin 楼主

2013-10-21 21:36:19

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

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

x
1. Open Microsoft Visual Studio.
! g6 T( c. H$ a7 f; H" t! q2 R' J, A/ G 2. Create a new VC++ project using the NX Open AppWizard.
5 |% F7 W* }: o1 U$ q; e$ G  x- H* Z+ a       Create new project as:
1 @& t! {1 u  H. t6 Y/ K
        2.1 File->New->Project.
9 F& i( c' J  ?$ o/ c        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,0 d: o+ B6 @  i$ W5 B
            Enter name as ExecuteCheckerAndGetResults. Click Next.
" O( B' K- W2 e
        2.3 Under Application Settings, select 'An Internal application that can be
' N) K. C1 I/ h            activated from an NX session (DLL)'.
* C& W- Q: t9 _( F2 D
        2.4 Select C++ for What language would you like to use in the generated
$ W# g) h7 ^2 e$ {            source files. Click Finish.

, S' |5 Y* Z/ L+ Y) u    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project- w6 d0 a2 ?- w4 R
       pull down and select "Add Existing Item...". Select the file using the popup window.

) y9 W0 O5 \7 p6 s    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.* z# j( {% N/ B% y. U" J* c
       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.! d5 A# G, m( S7 }  M+ K- W
       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
# w: @* g( X, _% r0 e      
# D0 |" E, a3 Q2 u* M& f       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional( \$ F  d5 R$ Z$ d
       Include Directories.0 S7 |% r4 L8 S% t' L6 i
      
; G- [- s8 I, r       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
: L1 e! @4 p5 Z9 {$ o       Library Directories.+ ]4 c$ X7 Z- Q9 @
       3 \& G4 g+ v0 ?& Q
       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
3 T- v) `1 Q3 N# b       existing in Additional Dependencies.; I! X9 m+ O! `/ Q. O' t, |
       Click OK button to close Configuration Manager dialog.

  K: V9 J/ u' T0 d
8 b' }( d- w" \* E$ m3 |9 ]1 s/ i4 u; q

/ H. e- {8 m+ {# P! Q    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution"." t+ V1 Z' l- T& ]% i" B
    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory., e" R( v: R2 k' ~8 s; m8 w% B2 r1 H
6 ^6 r5 M5 v: a- J
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 doTeam.tech
回复

使用道具 举报

发表回复

您需要登录后才可以回帖 登录 | 注册

返回列表 本版积分规则

  • 发布新帖

  • 在线客服

  • 微信

  • 客户端

  • 返回顶部

  • x
    温馨提示

    本网站(plmhome.com)为PLM之家工业软件学习官网站

    展示的视频材料全部免费,需要高清和特殊技术支持请联系 QQ: 939801026

    PLM之家NX CAM二次开发专题模块培训报名开始啦

    我知道了