高丽华







摘要:整个系统基于AutoCAD VBA技术进行二次开发,针对不同类型的齿轮,根据用户输入的参数,产生相应的齿轮外形,再根据需要自动生成需要的视图。另外,在课题中为了提高绘图的效率,对图纸的常规设置包括图框线及标题栏的插入也实现了自动化。齿轮系统的开发,实现了AutoCAD功能的拓展,能很好地满足机械行业产品的设计需求。
Abstract: The overall system technology carries on the re-development based on AutoCAD VBA, in view of the different type's gear, according to the Parameters entered by the users, the shape of the gear will to be produced, According to the needs of the users to produce the view automatically which will again need . Moreover, in topic to enhance the cartography the efficiency, it has realized the automation to the blueprint conventional establishment including the chart frame and the title block insertion. The developmence of commonly used gear system has realized the AutoCAD function development, and this can satisfy the design demand of the mechanical profession product well.
关键词:齿轮;AutoCAD;VBA
Key words: gear;AutoCAD;VBA
中圖分类号:TP319 文献标识码:A 文章编号:1674-957X(2021)17-0198-02
0 引言
利用AutoCAD VBA语言实现齿轮绘图过程的自动化是提高效率和减少重复性劳动的最佳方法。也就是说,只要用户在对话框中输入齿轮的必要参数,AutoCAD就会自动地绘出齿轮的零件图,使整个设计过程简化。这样就会节省更多的人力物力,使产品开发人员更好地专注于其他方面的产品问题。系统开发完成了常用齿轮中的直齿圆柱齿轮、直齿圆柱斜齿轮、直齿圆锥齿轮,蜗轮、蜗杆等的绘制。同时通过编程实现了图框线、标题栏及齿轮参数表的自动插入。
1 系统开发实现总论
1.1 系统实现的设计思想 根据用户输入的参数不同,系统就会产生不同外形的的齿轮零件。针对齿轮设计,在AutoCAD VBA基础平台上进行功能扩展,将机械设计进行简化,无须查找资料,也可以在AutoCAD中设计出所需的零件,并直接生成数据报告和零件图。首先确定齿轮绘制所需要的一些基本参数,通过它们的组合使用就可以将齿轮的外形绘制出来。再用其他的内部命令,如图层,线性的定制命令,进行相应的修改后,就可以绘制出所需要的图形来。……