PLM之家PLMHome-国产软件践行者

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

[复制链接]

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

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

admin 楼主

2013-10-21 21:36:19

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

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

x
1. Open Microsoft Visual Studio.
% H/ D! u5 d' d' {# [ 2. Create a new VC++ project using the NX Open AppWizard.
8 O& ~3 U" F) e! j, ?  L       Create new project as:

) c; r8 e+ J8 h- P) L+ D        2.1 File->New->Project.6 T6 c( J  ]. }- m& P) V; N' M$ e6 `* l
        2.2 Select VC++ Project using the NX Open AppWizard, DLL Library Application,
0 O5 k. e1 g* u) ~1 S            Enter name as ExecuteCheckerAndGetResults. Click Next.

- t2 n5 o& \* x  R* i* ^& S" @        2.3 Under Application Settings, select 'An Internal application that can be: S7 l1 h, v+ T9 r' A
            activated from an NX session (DLL)'.

# J3 P9 V, [6 r8 Y4 j8 v        2.4 Select C++ for What language would you like to use in the generated
) @( ]9 d. {. c9 v$ O            source files. Click Finish.

) Q% `1 T# J5 S- q    3. Add the ExecuteCheckerAndGetResults.cpp to the project by selecting the Project
) {& l" {6 I% F4 o. p& B1 Y. W       pull down and select "Add Existing Item...". Select the file using the popup window.
4 X! b% I0 R/ ^4 D, @/ J& C
    4. Right-click this project in the Solution Explorer and select Properties on the popup menu.
" i5 }' O- e) z. B7 c$ f" q       On the Property Pages dialog, click Configuration Manager... button to open Configuration Manager dialog.2 p1 j/ {; ^6 i  {# H  H+ {' w
       Select x64 for Active solution platform in the Configuration Manager when use 64 bit NX. Click Close button.1 l0 q0 t( T) a1 B
      
. h/ \+ e( X! N; E       Click Configuration Properties->C/C++->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional
/ p6 ~2 B/ F( t# N, H) R       Include Directories.
% u' ^' d7 H' r8 K3 ?+ @- |      
- Z8 T/ ^, t$ b# @' |! _       Click Configuration Properties->Linker->General to confirm $(UGII_BASE_DIR)\ugopen is existing in Additional" ?6 Z4 A8 W8 L* d" Q6 U3 |
       Library Directories.
7 e  f5 n# P6 Q; Q; A. m      
. |6 u) ]9 J' M3 N- ]       Click Configuration Properties->Linker->Input to confirm libnxopencpp.lib;libnxopencpp_validate.lib are
; N+ X4 j! e3 z0 X& P       existing in Additional Dependencies.
2 Y0 ?3 q# O0 P       Click OK button to close Configuration Manager dialog.
. @* O' l) J5 p& e) {* X1 Z

. q/ `* f  w5 Z! N

& t/ H5 O9 r$ h) Z$ e7 v2 ~& O* `    5. Build the internal image by going to the Build menu and selecting either "Build Solution" or "Rebuild Solution".
5 x2 m) F* p1 s    This will create an executable called ExecuteCheckerAndGetResults.dll in the Debug directory.& W  f, v0 j' M: q( W

( w" _6 x9 u0 K
上海点团信息科技有限公司,承接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二次开发专题模块培训报名开始啦

    我知道了