查看: 5355|回复: 0

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

[复制链接]

4

主题

3

回帖

48

积分

管理员

积分
48
发表于 2013-10-21 21:36:19 | 显示全部楼层 |阅读模式

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

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

×
1. Open Microsoft Visual Studio.
( E$ G( F+ O' S3 Z 2. Create a new VC++ project using the NX Open AppWizard.6 p+ j! w3 u( R( d
       Create new project as:
! Y2 x$ r: Q/ u. M3 ]% n* }1 a; ~' W
        2.1 File->New->Project.' j0 ]% t1 ], K1 F! f
        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,3 B9 G% [& U  i/ j& Z$ w4 Z
            Enter name as ExecuteCheckerAndGetResults. Click Next.

5 |1 Y, I* E' |  c6 x. e        2.3 Under Application Settings, select 'An Internal application that can be
9 C- U( }5 J5 f            activated from an NX session (DLL)'.

# Q! U0 h& g6 X* e8 t$ e* ?6 k2 Q6 r        2.4 Select C++ for What language would you like to use in the generated
0 F8 f5 h8 y' }) h3 D            source files. Click Finish.

' T& U8 p% z+ U4 G    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project9 L% `2 q2 w  F% J+ n" `# Q
       pull down and select "Add Existing Item...". Select the file using the popup window.

* w# n% F5 r6 S6 Y- q: X    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.
, y$ d% L8 o6 [       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
; J# Y# v7 h4 @       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.& Y. K- j8 M2 D1 H: ?6 Q- k2 s/ v4 A
      
& ]) t9 c1 ]+ Z       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
1 s  z0 I( B6 e  H4 K       Include Directories.; U' V0 V* K$ l) p
      
* T: K' Y% i- K. x' P) j       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional" I+ [# b. C2 c/ `
       Library Directories.# Z4 j& ^/ s# v" O) b( R
       0 h9 @8 l6 s$ O  h1 u, S
       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
" V1 ]4 S* _5 q8 B) U3 ?       existing in Additional Dependencies., i) F8 Y/ M6 b8 M% v
       Click OK button to close Configuration Manager dialog.
; u1 z4 n2 k5 d
! J5 J+ `. P8 C0 F' e/ Z

% u9 A% Y* n0 J# p1 B    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
9 ^0 s: q" Q% c; \4 J$ ]; G; L& a    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.! t8 P& v7 Q2 `+ U, D. Q

7 T1 K5 k) O& I$ c& j- r  B4 m( ^+ I
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

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

本版积分规则

在本版发帖
关注公众号
QQ客服返回顶部