查看: 5445|回复: 0

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

[复制链接]

6

主题

4

回帖

60

积分

管理员

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

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

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

×
1. Open Microsoft Visual Studio.
; N* G" E; S* x/ ~( `* ` 2. Create a new VC++ project using the NX Open AppWizard.$ y! q6 d1 Z; `7 {: r
       Create new project as:

& I1 ^( p' Q; h7 i& e( p1 ^        2.1 File->New->Project.7 {4 k! C* t  A. K( _/ L# U. m
        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
- `% W) o( U8 m6 f' j3 k9 Q( I            Enter name as ExecuteCheckerAndGetResults. Click Next.

8 {- m- A' r! J8 {" [5 K1 u        2.3 Under Application Settings, select 'An Internal application that can be
; g/ J, }# B/ M1 B            activated from an NX session (DLL)'.
' z# a; b: ]; p3 m( L9 J
        2.4 Select C++ for What language would you like to use in the generated
9 N$ d# u1 E8 X& q+ X3 d8 n+ g            source files. Click Finish.
; R+ @8 \) L( x1 a/ N' ~
    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
- f5 I: n0 O4 k       pull down and select "Add Existing Item...". Select the file using the popup window.

0 K& t2 O. }" z6 f' H& J    4. Right-click this project in the Solution Explorer and select Properties on the popup menu./ z! Q+ @9 S9 D9 c5 h( M8 }" T
       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.
) d  q, N& J" P+ O       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.5 U/ x$ A3 ?1 K- c+ E5 S+ I( j
      
, q0 k) A/ x6 d, `3 L8 ?' H( y. ^       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional* d  ?+ L) J* K% }/ x8 z5 F5 T5 U
       Include Directories.
* Y: U3 A  a7 ~' C       6 c0 C% ~3 f) o& Q% W( G
       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
9 o0 _% t2 y/ v  H       Library Directories.* T: _* \( j1 E
       : }# w: c+ e8 _% \$ p( N
       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
' A5 e+ p' b" h, |9 @       existing in Additional Dependencies.
% |) s8 e9 y( ?) l: G5 ~4 }       Click OK button to close Configuration Manager dialog.
0 \( B9 o% i' I4 \( q+ q% v

0 s* G) b. ~0 ?* l

  r6 T) ^9 {9 z9 N+ n$ @    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".; c: U3 C  E0 A/ O9 K9 o: d
    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
* g/ ?8 B# I. f7 U7 k* I2 s# m( X' _0 R. [# T
上海点团信息科技有限公司,承接UG NX,CATIA,CREO,Solidworks 等CAx软件,Teamcenter,3D Experience等PLM软件,工业4.0数字化软件的实施\二次开发\培训相关业务,详情QQ 939801026 Tel 18301858168 网址 www.doteam.tech
回复

使用道具 举报

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

本版积分规则

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