定模板座A3
基于AutoLisp轴类零件参数化绘图
摘要
AutoCAD是当今世界上使用最多的通用绘图软件之一,但其在某些具体的功能方面仍有其自身的不足。在机械零件的设计绘图中,一些常用图形需要经常绘制,若我们逐一绘制,显然费时费力,事倍功半,系统自带的图快复制粘贴插入等编辑功能操作又有着难以避免的局限性。随着标准件库的陆续推出,确实解决了很大一部分问题,但我个人认为这无法满足我们对实际的要求。因此,为了提高绘图速度,我们可以利用计算机软件来进行参数化绘图。AutoLisp语言内嵌于AutoCAD,实现了计算与绘图的统一,我们有必要在AutoCAD平台上,利用语言进行二次开发,建立常用图形库,在绘制时调出,避免重复性劳动及绘图不规范等问题。
本的主要目的就是在对轴类零件结构分析的基础上,选择一种有代表性的图形结构,通过采用AutoLisp语言编程对AutoCAD进行二次开发,即可实现不同轴径、槽宽和槽深的轴剖面图的自动绘制及尺寸标注,提高了轴类零件的绘图效率。
关键词:轴类零件;参数化设计;二次开发;AutoLisp语言
Abstract
AutoCAD is theworld’s most common use of graphics software,but its specific functions in certain still its own shortcomings.Drawing in the design of mechanical parts,some common graphic needs often draw,ifwe draw one by one,obviosly laborious and time consuming duplication of efforts,the system map that comeswith fast copy and paste into other editing operations it has inevitable limitations.With the continuous introdution of standard parts library,a large part of the problem is indeed solved,but personally think thatwe can not meet the actual requirements.Therefore,in order to improve drawing speed,we can use computer software to conduct parametric drawing.AutoLisp language embedded in AutoCAD, calculation and drawing to achieve a unified,we need the AutoCAD platform,use the second language development,the establishment of common graphics library,in the drawwhen called up,to avoid repetitivework and the problem of drawing is not standardized,etc.
The main purpose of this paper is to analyze three dimensional structure based on the graphic to select a representative structure,through the use of AutoLisp language programming on the secondary of AutoCAD,you can achieve different shaft diameter,groovewidth and groove depth of the axial profiles of automatic drawing and dimensioning,improve the efficiency of shaft parts of the drawing.
Keywords:shaft parts;parameterization design;secondary development;AutoLisp language
目录
引言1
1 AutoCAD及其二次开发技术2
1.1第一代开发工具——AutoLISP 2
1.2第二代开发工具——ADS 2
1.3第三代开发工具——Visual LISP,ARS及基于ActiveX Automation技术的VBA等3
1.3.1 Visual LISP(VLISP) 3
1.3.2 ARX 3
1.3.3基于ActiveX Automation技术的VBA等开发工具4
1.4总结5
2利用AutoLisp进行参数化绘图的方案6
2.1鼠标拖动6
2.2尺寸驱动6
2.3总结7
3对话框的设计8
3.1 DCL语言的语法规8
3.2对话框设计中用到的控件和属性8
3.3对话框的程序编译9
4系统设计14
4.1轴设计的总体方案14
4.2主程序的设计14
4.2.1对话框PDB函数14
4.2.2主程序的编译16
4.3程序的运行25
5结论29
谢辞30
参考文献31
涡轮A1
轴参数化设计的自动绘制A3
锥齿A3
2摘要
3设计所包含文件
4目录
1字数