全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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年南昌市消防救援支队水上大队招聘勤务及宣传勤务文员3人笔试考试参考试题及答案解析
- 2025-2026学年北师大版数学九年级上册期末考试模拟试卷
- 航空航天技术:高性能碳纤维复合材料在航天器结构中的应用
- 员工企业归属感培训课件
- 2025云南大理州建设投资(集团)有限公司招聘专业技术人员19人笔试历年典型考点题库附带答案详解试卷2套
- 2026莱商银行校园招聘笔试考试参考题库附答案解析
- 铸造企业环保培训
- 进修医生岗前培训
- 《车辆工程专业导论》课程教学大纲
- 冬春火灾防控暨消防安全重点风险领域排查整改专项行动工作方案
评论
0/150
提交评论