


全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
NX Open Visual Basic (VB) wizardCreating a Visual Basic project using the NX Open VB wizardThe following topic describes how to develop an NX Open Visual Basic application using Microsoft Visual Studio. It is recommended that all NX Open Visual Basic program development on Windows be done from a Visual Basic projectStarting Visual StudioYou can start Visual Studio by typing devenv.exe from an NX command prompt window. Studio will pick up the required NX environment variables necessary to compile and link a project.Creating a Visual Basic projectUse the Visual Basic wizard whenever you need to create a new NX Open automation program in Visual Studio with the Visual Basic language. The wizard automatically adds the required references to NX Open libraries in the new project.Using the NX Open VB wizardTo use the NX Open VB wizard:Step1. Select the FileNewProject menu item to activate the New dialog box.Step2. Under Project Types, expand Other languages and select Visual Basic.Step3. Select NX#_VB from the list of Templates (where # is the NX version).Step4. Enter a project name into the Project name: dynamic input box. By default this becomes the name portion of the program being built. For instance, a project named MyNXOpenApp produces either a MyNXOpenApp.dll or MyNXOpenApp.exe. You can override this later, if necessary.Step5. Click OK and follow the on-screen instructions to create your Visual Basic project.NX Open C# wizardCreating a C# project using the NX Open C# wizardThe following topic describes how to develop an NX Open C# application using Microsoft Visual Studio. It is recommended that all NX Open C# program development on Windows be done from a Visual C# projectStarting Visual StudioYou can start Visual Studio by typing devenv.exefrom the NX Command Prompt window. Visual Studio uses the required NX environment variables to compile and link a project.Creating a Visual C# projectUse the C# wizard whenever you need to create a new NX Open automation program in Visual Studio with the C# language. The wizard automatically adds the required references to NX Open libraries in the new project.Using the NX Open C# wizardTo use the NX Open C# wizard:Step1. Choose FileNewProject menu item to activate the New dialog box.Step2. Under Project Types, expand Other languages and select Visual C#.Step3. From the Templates list. Select NX#_VCS (where # is the NX version).Step4. In Project Name, enter a project name.By default this becomes the name portion of the program being built. For example, a project named MyNXOpenApp produces either a MyNXOpenApp.dll or MyNXOpenApp.exe. You can override this later, if necessary.Step5. Click OK and follow the on-screen instructions to create your C# project.Visual Studio Application Wizard SetupMicrosoft 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%ugopenvs_filesTo 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_MACHINESOFTWAREMicrosoftVisualStudioversion#SetupVC/productdir (where version# would be 7.1, 8.0, etc). For other languages replace the VC with either VB or VC#. 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. C
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 海信空调安全知识培训课件
- 2025年水路运输企业安全生产培训与操作技能评估合同
- 2025年企业内部虚拟股权激励方案执行细则合同
- 2025年度智能自动门销售代理及区域市场拓展与维护服务合同
- 2025年度职业培训基地共建与运营管理协议
- 2025年医疗放射设施租赁及全方位影像诊断服务协议
- 2025年度环保科技公司股权分配与利益共享合作协议书
- 2025年茶叶新品研发与技术授权合作协议
- 2025年基础设施建设项目BIM设计施工一体化合作协议
- 2025年跨境电商佣金提成合作协议范本
- 2025年中考历史(河南卷)真题评析
- 2025版线上直播场推广服务合同模板
- 高一上学期数学学法指导课件2024.9.14
- GB/T 45845.1-2025智慧城市基础设施整合运营框架第1部分:全生命周期业务协同管理指南
- 呼吸科考试试题及答案
- 肿瘤内科胆囊癌护理查房
- 《肺结节规范化诊治专家共识(2024)》解读 课件
- 质量管理五大工具培训教材
- 2025年村支书考试试题及答案
- 锂电池生产企业事故综合应急预案
- 儿童高铁课件教学
评论
0/150
提交评论