UG NX二次开发向导设置

浏览:90800 回答:2
对于NX6和7.默认的模版文件是VS2008,我是用vc.net05,所以把文件NX7_VB.vsz中的版本9.0改成8.0,ok,就可以用模版开发了。
Microsoft Visual Studio can be used to compile, link and debug programs on the Windows platform. There are currently three NX Wizards that have been integrated into Visual Studio and available for use with the Common API. They are:
NX Open Wizard for use with C and C++ programs (found under the VC directory)
NX Open VB Wizard for Visual Basic programs (found under the VB directory)
NX Open C# Wizard for C# programs (found under the VC# directory)
If Visual Studio has been installed on a workstation and then NX is installed locally (on the same workstation), the available NX Wizards will be installed automatically. Otherwise the following steps need to be taken to set up each of the NX Wizards on the local workstation.
  • Make sure the appropriate version Microsoft Visual Studio has been installed
  • Copy all files from the NX kit to the corresponding directories of the local Visual Studio installation. The kit is located in:
    %UGII_BASE_DIR%\ugopen\vs_files\
To determine the correct location of the Visual Studio installation, look at the productdir registry key for each language. The key for C and C++ is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\version#\Setup\VC/productdir (where version# would be 7.1, 8.0, etc). For other languages replace the VC with either VB or VC#.修改版本,文件是D:\UGS\NX70\UGOPEN\vs_files\VB\VBProjects\NX7_VB.vsz
  • For each wizard, copy any files and/or folders under each subdirectory from the kit to the Visual Studio installation. This example is for the C language so substitute VB or VC# and the appropriate subdirectory for the other languages. Copy:
    %UGII_BASE_DIR%\UGOPEN\vs_files\VC\VCWizards\拷贝这里的文件
    to
    C:/program Files\Microsoft Visual Studio 8\VC\VCWizards\
    and
    %UGII_BASE_DIR%\UGOPEN\vs_files\VC\vcprojects\拷贝这里的文件
    to
    C:/program Files\Microsoft Visual Studio 8\VC\vcprojects\
Repeat for each language.
邀请回答 我来回答

全部回答

(2)
默认 最新
linming79
学习中~~~~~~~~~
2010年4月27日
评论 点赞
femap
补充说明%UGII_BASE_DIR%指的是ug nx安装目录
还有模型建立好后,启动vs,nx向导在vs向导的根选项,一定注意还有就是,这种方法是开发dll文件,启动ug nx,调用dll。
2010年4月25日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP