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

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

[复制链接]

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

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

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

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

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

x
1. Open Microsoft Visual Studio.
1 H* m2 ~1 i6 x( r6 Y# B( G 2. Create a new VC++ project using the NX Open AppWizard.
' ^0 n$ J% u* Z% U, E5 V- ?, k2 ?       Create new project as:
/ Q# J5 C9 F+ s& R
        2.1 File->New->Project.
6 L, \! R, R4 d* L2 f        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,4 w3 ^8 _! `: P2 Q
            Enter name as ExecuteCheckerAndGetResults. Click Next.
$ S5 o; T4 A& \$ X
        2.3 Under Application Settings, select 'An Internal application that can be
( d4 N0 A) f$ ?- w+ c1 i            activated from an NX session (DLL)'.
( v: I" V. k/ K# s
        2.4 Select C++ for What language would you like to use in the generated' O$ Z' n. ]2 ?6 U4 l& v/ O
            source files. Click Finish.

( d0 K/ l  i1 F" c& Q$ C; V: S    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
* a6 x2 u* F7 V8 S; s) `$ r2 w       pull down and select "Add Existing Item...". Select the file using the popup window.
7 J$ S  m7 Z2 _7 k1 T+ c! {2 P
    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.0 X; G) {, B  Y, _5 w2 Y5 S
       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.$ R  y; K$ E8 B: `$ _
       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.& ?5 Q1 N( j3 Q, J/ s" ^! X
       3 T% V& J6 [5 g0 g/ `
       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional. O/ P* |; B, q8 f
       Include Directories.5 f+ T3 N) A! P
      
9 L# C2 L% S- q9 R- |2 e- w       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional# n( h6 B4 L7 W4 d2 h( j
       Library Directories.
2 B! r( V3 R$ x6 y' D      
. D9 O+ v, r8 a6 @5 o: H- o( F# D8 o       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are# U4 I" n# @2 f3 u5 O7 @" k! j( n
       existing in Additional Dependencies.3 N/ J+ @4 e$ ~4 e* v0 Z
       Click OK button to close Configuration Manager dialog.
* \: ?  P$ b3 i; h: x

* X8 R+ t8 x% O
2 ~) s; a3 N) e$ m* x
    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".: _. L8 v  s4 a; ~9 C! T9 @4 p
    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.0 {& I: L' c- `! a

' Z, X! ]* X; v% M- ?5 p) P
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了