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

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

[复制链接]

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

2470

主题

1275

回帖

8万

积分

管理员

PLM之家站长

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

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

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

x
1. Open Microsoft Visual Studio.! K% M# o4 H& n& G) s
2. Create a new VC++ project using the NX Open AppWizard.
. q+ N! ~4 i! l- @       Create new project as:
6 \" K1 v# g6 @% }( o7 r, H
        2.1 File->New->Project., J7 l# b- _. P" I. p5 K9 ^
        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
+ T1 q) A- e) J5 o            Enter name as ExecuteCheckerAndGetResults. Click Next.
+ \. B; a1 @3 z) w: w- B
        2.3 Under Application Settings, select 'An Internal application that can be, v1 V3 E) l* J6 X: h7 F
            activated from an NX session (DLL)'.
( N: J/ R* J8 m2 }" `' I9 f: h
        2.4 Select C++ for What language would you like to use in the generated
' B6 B9 G( I2 E! m! W1 W8 o3 n+ Q            source files. Click Finish.
4 v9 n* L% `4 t. }  q
    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
+ T# O" v1 `' q8 ?" s       pull down and select "Add Existing Item...". Select the file using the popup window.
2 D- c4 R7 h$ p! ^; ~
    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.1 w) H! w8 c4 l( |# X
       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog., E6 U9 s# j; r7 X$ e( L/ C
       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.
4 `  `6 L; a3 t2 h+ q. H       % J% \) J% r& J) H' i
       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
( h7 N( H# c+ E9 s8 a       Include Directories.
2 K8 e/ H$ m2 e  ^      
6 I/ G( g' C0 H4 C9 o$ c       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
0 T: h" f7 {1 E. z5 K9 R- u: l' E3 o       Library Directories.
7 E4 w* \$ ]% u% L) q3 V% G: R      
9 k. D9 S/ A  U5 x! `2 o# r7 U       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are9 V' H* ^2 l# E
       existing in Additional Dependencies.
) M) F+ P2 S  M' @3 T" l       Click OK button to close Configuration Manager dialog.
, ?: t0 i" ?& e$ `0 a# o3 U7 O
) {$ z& D; G$ G) ]" x* T
' M5 r. k6 C7 R0 h7 d1 X
    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
3 H0 ?( ~: @3 d1 F. i& }    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.
1 Q; F9 d0 \0 {2 Y7 S4 C6 d* _3 W) L
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了