1、 - 1 - 摘 要 本文介绍了 Pro/E 的二次开发工具,利用 Pro/E 对卷筒中间轴进行了参数化 造型设计,建立了相应的参数,用 Pro/Toolkit 和 VC 对卷筒中间轴参数化系统进 行了程序设计,包括菜单的添加和 MFC 对话框的制作。最后,对开发的三维建 模程序进行测试。结果表明:开发程序准确无误,建模迅速,大大提高了这类通 用件在 Pro/E 平台上的设计效率。 关键词:三维造型、Pro/E 二次开发、Pro/Toolkit、VC ABSTRACT The essay introduced the tools of the second-development of Pro
2、/E,design the intermediate shaft of winding drum in parametrics based on Pro/E and built its variables.On this basis,the writer designed the programs of its parametric systems used Pro/Toolkit and VC .The programs includes the creation of menu,the creation of the MFC dialogue.In the end,the test of
3、all process of three-dimension-part-model driven by database is performed indicates that the program is right,and the mold can be set up quickly.The efficiency for the design of interchangeable part based on Pro/E can be increased. Key Words: three-dimension design;second-development of Pro/E;Pro/To
4、olkit;VC - 2 - 目 录 摘要.1 绪论. 1 第 1 章 Pro/E 二次开发简介.3 1.1 Pro/E 软件简介3 1.2 Pro/E 二次开发工具简介4 第 2 章 零件造型.6 2.1 pro/E 的三维造型功能.6 2.2 pro/E 创建模型过程.7 第 3 章 轴的参数化设计.11 3.1 菜单的添加.11 3.2 MFC 对话框的建立及运行.15 3.3 整个参数化的实现.18 总结.25 致谢.26 参考文献.27 - 3 - 绪论 现在的 CAD/CAM 系统,如 Pro/E、UG 等,都是比较通用的大型软件 系统,用这样的大型系统建立我们所需要的产品模型可能
5、需要大量的时间。 如果能在此类软件的基础上,开发出适合本单位产品的应用程序,无疑会 大大提高本单位产品的设计效率,加快产品的更新速度,从而提高企业的 市场竞争能力。 Pro/E 的二次开发方法有五种: (1)基于 Pro/TOOLKIT 的二次开发过程 Pro/TOOLKIT 是针对 Pro/E 功能强大的二次开发工具。 它封装了许多针 对 Pro/E 底层资源调用的库函数与头文件,借助第三方编译环境(C 语言、 VC+语言等)进行调试。使用 Pro/TOOLKIT 开发应用程序包含三个基本 步骤:编写源文件(包括资源文件和程序源文件);生成可执行文件;可 执行文件在 Pro/E 中注册并运行是 Pro/E 软件自带的二次开发模块,可以直 接访问 Pro/E 软件的最底层数据库资源,这是进行 Pro/E 二次开发最根本的 方法, 但要求开发人员具有相当 C 语言的编程能力; 它是 PTC 公司为 Pro/E 提供的用户化工具箱(18 以前的版本