朱凯 王鹏飞
【摘 要】使用VB 6.0和ACCESS数据库为开发工具,在CATIA平台进行汽车标准件三维图库基于VBScript脚本的参数化设计,并以等长双头螺柱标准件为实例介绍了应用过程。该标准件图库界面友好,操作方便,能与CATIA良好对接,节省了设计时间,提高了企业设计效率。
【关键词】汽车标准件;三维图库;参数化设计
中图分类号: TP391.72 文献标识码: A 文章编号: 2095-2457(2017)17-0011-003
Parametric Design and Application of 3D Standard Library for Automobile Standard Parts
ZHU Kai WANG Peng-fei
(School of Mechanical and Vehicular Engineering, Bengbu University ,Bengbu 233000,China)
【Abstract】Using VB6.0 and ACCESS database as developing tools,the parametric design of 3D standard library based on VBScript is carried out on the CATIA platform.The application process is introduced with the example of the standard bolt.The standard library has friendly interface,convenient operation and good docking with CATIA,saving design time and improving the efficiency of enterprise design.
【Key words】Automotive Standard Parts;3D Gallery;Parameterized Design
0 引言
目前,用于一辆普通轿车上的标准件数量就可以有3000 多个,因此汽车企业在设计制造过程中都十分重视标准化。这些标准件主要集中在螺柱、螺栓、螺母、螺钉、螺塞、铆钉、挡圈、垫圈、密封件、管接件、卡扣等类别[1]。在设计过程中,设计人员会对大部分结构相同,仅尺寸不同的标准件重复建模,浪费人力物力。基于CATIA平台进行汽车标准件三维图库的设计和建立,就可以快速准确生成所需的标准件三维模型,节省设计时间,提高设计效率。
1 三维图库总体设计
1.1 建库的方法与选择
在CATIA平台上建库的方法比较多,大体可分为三类[2-3]。
(1)使用CATIA自带的Formula,DesignTable,Catalog功能模块建立使用标准件库。
(2)使用VB等提供的引用对象库,将CATIA 库文件加入程序框架,引用CATIA的类对象和函数等来进行二次开发。
(3)通过应用CATIA 提供的二次开发工具RADE和库函数CAA (CATIA Application Architecture)的接口,在VC 开发环境中创建标准件库。
第一类由于是CATIA自带的,用户界面不友好,信息管理繁琐。第二类和第三类需要编程比较多,要求高。综合上述几种方法的优缺点,我们改进第二类,综合运用基于VBScript的参数化设计方法来建库。……