摘要
在AUTOCAD中,完成一个装配图零部件序号的标注,需要画线、画圆和写文字等命令,至少18个操作步骤,效率低,劳动强度大。分析了国家机械制图零部件序号标注的规定,利用Autolisp开发了智能标注程序,只需给出2点和序号共3个变量,3个操作就可完成一个标注。程序自动生产零件序号,智能化完成文字位置的水平或垂直对齐及公共标注。程序自动循环执行,一次可完成多个序号标注。使用方便,高效简练,标注效果符合国家标准的有关规定。
To label item references in AUTOCAD, it needs to draw the line, circle and write text and other commands, at least 18 steps, so its efficiency is very low and its hand labour is intensive. Therefore, this paper analyzes the national drawing standard of la- beling balloons and uses Autolisl- to develop a intelligent labeling program, in which the two points and the serial number of three var- iables are given only, it is operated three times to complete one labeling. The program is used to automatically produce the item num- ber to intelligently complete the text position horizontall or verticall alignment and its common label. The program can be automatically cycleically executied, one time it can be used to complete multiple serial number label. It is easy to operate, its efficiency is high and its labeling meets the relevant national standards.
出处
《机械制造与自动化》
2016年第4期142-144,172,共4页
Machine Building & Automation