计算机辅助设计(autocad二次开发).doc
约47页DOC格式手机打开展开
计算机辅助设计(autocad二次开发),47页5.7万余字,包含毕业设计任务书,完整论文、源代码。文献资料等摘要 随着计算机技术的不断发展,技术人员素质的不断提高,autocad定制开发技术在计算机辅助设计中的应用将会得到更快更好的发展。autocad的巨大成功,首先得益于它的开放性,使得第三方很容易开发各种适用的专用软件,给用户带来标准、廉价、方便、高效等...
内容介绍
此文档由会员 lzj781219 发布
47页5.7万余字,包含毕业设计任务书,完整论文、源代码。文献资料等
摘 要
随着计算机技术的不断发展,技术人员素质的不断提高,AutoCAD定制开发技术在计算机辅助设计中的应用将会得到更快更好的发展。AutoCAD的巨大成功,首先得益于它的开放性,使得第三方很容易开发各种适用的专用软件,给用户带来标准、廉价、方便、高效等益处,从而进一步占领了市场。用户通过对AutoCAD系统的定制开发,可以结合自己的专业特点,开发属于自己的专用型CAD系统。目前,国内开发的工程制图软件大多采用AutoCAD作为其软件支撑平台,进行二次开发而成,为工程设计和制图行业创造了巨大的经济效益和社会效益。显而易见,这不仅大大提高了设计效率,而且通过开发系统可以定制出某些专业化模块,甚至大型设计绘图软件。
AutoLISP是AutoCAD最早的解释型API,它不是面向对象的语言,主要用来自动完成重复性任务,进行客户化开发和编制AutoCAD菜单以及通过简单机制为AutoCAD增加命令。
AutoLISP有如下优点:
1.语言规则十分简单,易学易用
AutoLISP来源的LISP语言,以一种通用的规则-表(LIST),来描述过程和数据。由于这种规则极其简单,一个对计算机了解不太深入的工程专业人员,仅需经短期的学习,就可以熟练掌握这门语言。LSIP语言的简洁性是其它许多计算机语言所无法相比的,“万能”的表屏蔽了复杂的过程,可描述任何数据结构。
2.直接针对AutoCAD,易于交互
AutoLISP提供的大多数函数都是直接针对AutoCAD的操作,AutoLISP编写访问AutoCAD图形数据库(DWG)图形数据库的操作。
3.解释执行,立竿见影
程序员既可以一次运行一段AutoLISP代码,也可以在 AutoCAD的Command下逐条键入AutoLISP指令,立即得到结果。
关键词:
计算机辅助设计, AutoLISP,AutoCAD
Abstract
With the continuous development of the computer technology , technical personnel's character increasing continuously, the application of the customization exploring technology of AutoCAD in computer-aided designation will get sooner better development.The remarkable success of AutoCAD , benefit to opening in first, making the third party to develop the appropriation software of every kind of suitable for use very easily, bringing the customer the standard, cheap, convenience, advantage efficiently,and so on, accordingly , taking more possession of market. The customer passes to make to order the development to the system of AutoCAD, joining together own profession characteristics, exploring CAD system belongs to ourselves. At present, the engineering graphics software of the domestic development adopts mostly the AutoCAD is used as its software props up the terrace, proceeding to second development, designing for the engineering to create with the graphics profession enormous and economic performance with social performance.Easy to see, this not only increases to the efficiency of designing consumedly, but also though developes the system making to order a some professions turns mold piece, even design large ploting software.
The AutoLISP is an AutoCAD hermeneutic API at the earliest stage, it not is a language to faced to the object,it used to come from to move to complete the mission of repetition primarily, proceed the client development and the menu of establishment AutoCAD and passing the simple mechanism to add orders for the AutoCAD.
The advantage of AutoLISP ,as follows:
1. The language rule is very simple, easy to learn and to use.
The source of AutoLISP and the language of LISP, with a general rule -form( LIST), describe the process with the data. Because this kind of rule is very simple, an engineer that he is not so thoroughly understand, need only through the short-term study, can be well-trained to control this language. The simplification of lisp,that is other language can’t compare with.The form of the " all-powerful" shielded the complicated process, can describe any data construction.
2. Aim at the AutoCAD directly, easily hand over with each other
The majority function provides is all to aim at the AutoCAD operation directly, the AutoLISP plait writes the operation that visit the AutoCAD sketch database( DWG) sketch database.
3. Explain to carry out, get effect instantly
Procedure member can circulate an AutoLISP code once, and also can the Command in AutoCAD bottom key-in the instruction of AutoLISP item by item, getting the result immediately.
[keywords]:
computer-aided designation ,AutoLISP, AutoCAD
目 录
第一章 任务和实现目标
1.1任务要求 ------------------------------------------------------------------------------------------ 5
1.2实现目标 ------------------------------------------------------------------------------------------ 5
1.3开发工具 ------------------------------------------------------------------------------------------ 5
1.4着手设计 ------------------------------------------------------------------------------------------ 5
第二章 AUTOCAD介绍
2.1 AUTOCAD历史------------------------------------------------------------------------------------6
2.2 AUTOCAD 优点---------------------------------------------------------------------------------- 7
2.3 AUTOCAD二次开发----------------------------------------------------------------------------- 7
1.必要性------------------------------------------------------------------------------------------ 7
2.开发工具--------------------------------------------------------------------------------------- 7
3. 开发内容--------------------------------------------------------------------------------------- 9
第三章 开发工具介绍
3.1 AUTOLISP 介绍---------------------------------------------------------------------------------- 10
1.关于AutoLISP------------------------------------------------------------------------- 10
2. 函数介绍-------------------------------------------------------------------------------- 10
3. 流程图------------------------------------------------------------------------------------13
3.2 Visual LISP介绍---------------------------------------------------------------------------------- 15
1. 关于Visual LISP ------------------------------------------------------------------------ 15
2. Visual LISP控制台---------------------------------------------------------------------- 15
3. 使用Visual LISP Text Editor---------------------------------------------------------- 16
4. Visual LISP格式化器------------------------------------------------------------------- 20
第四章 系统方案和实现过程
4.1 系统结构--------------------------------------------------------------------------------------------22
4. 2 模块划分--------------------------------------------------------------------------------------------24
4.3 实现过程--------------------------------------------------------------------------------------------25
4. 4 系统调试------------------------------------------------------------------------------------------- 36
第五章 小结 ------------------------------------------------------------------------------------------- 39
致谢 -----------------------------------------------------------------------------------------------------40
英文翻译 -----------------------------------------------------------------------------------------------41
参考文献 -----------------------------------------------------------------------------------------------48
参考文献:
张本龙、周潜、赵海东编著,AUTOCAD2000综合应用手册,华中理工大学出版社,2000.5
Sham.Tickoo著,辛洪兵等译,AUTOCAD2000高级定制,机械工业出版社,2001.3
Sham.Tickoo著,潘岚、卢飒、潘宏等译,AUTOCAD2000高级用户指南:设计、定制、开发(AUTOCAD2000 A Problem-solving Approch),机械工业出版社,2001.3
Farin G. Curves and Surfaces for Computer Aided Geometric Design A Practical Guide . 3rd Editon. Academic Press ,1993
摘 要
随着计算机技术的不断发展,技术人员素质的不断提高,AutoCAD定制开发技术在计算机辅助设计中的应用将会得到更快更好的发展。AutoCAD的巨大成功,首先得益于它的开放性,使得第三方很容易开发各种适用的专用软件,给用户带来标准、廉价、方便、高效等益处,从而进一步占领了市场。用户通过对AutoCAD系统的定制开发,可以结合自己的专业特点,开发属于自己的专用型CAD系统。目前,国内开发的工程制图软件大多采用AutoCAD作为其软件支撑平台,进行二次开发而成,为工程设计和制图行业创造了巨大的经济效益和社会效益。显而易见,这不仅大大提高了设计效率,而且通过开发系统可以定制出某些专业化模块,甚至大型设计绘图软件。
AutoLISP是AutoCAD最早的解释型API,它不是面向对象的语言,主要用来自动完成重复性任务,进行客户化开发和编制AutoCAD菜单以及通过简单机制为AutoCAD增加命令。
AutoLISP有如下优点:
1.语言规则十分简单,易学易用
AutoLISP来源的LISP语言,以一种通用的规则-表(LIST),来描述过程和数据。由于这种规则极其简单,一个对计算机了解不太深入的工程专业人员,仅需经短期的学习,就可以熟练掌握这门语言。LSIP语言的简洁性是其它许多计算机语言所无法相比的,“万能”的表屏蔽了复杂的过程,可描述任何数据结构。
2.直接针对AutoCAD,易于交互
AutoLISP提供的大多数函数都是直接针对AutoCAD的操作,AutoLISP编写访问AutoCAD图形数据库(DWG)图形数据库的操作。
3.解释执行,立竿见影
程序员既可以一次运行一段AutoLISP代码,也可以在 AutoCAD的Command下逐条键入AutoLISP指令,立即得到结果。
关键词:
计算机辅助设计, AutoLISP,AutoCAD
Abstract
With the continuous development of the computer technology , technical personnel's character increasing continuously, the application of the customization exploring technology of AutoCAD in computer-aided designation will get sooner better development.The remarkable success of AutoCAD , benefit to opening in first, making the third party to develop the appropriation software of every kind of suitable for use very easily, bringing the customer the standard, cheap, convenience, advantage efficiently,and so on, accordingly , taking more possession of market. The customer passes to make to order the development to the system of AutoCAD, joining together own profession characteristics, exploring CAD system belongs to ourselves. At present, the engineering graphics software of the domestic development adopts mostly the AutoCAD is used as its software props up the terrace, proceeding to second development, designing for the engineering to create with the graphics profession enormous and economic performance with social performance.Easy to see, this not only increases to the efficiency of designing consumedly, but also though developes the system making to order a some professions turns mold piece, even design large ploting software.
The AutoLISP is an AutoCAD hermeneutic API at the earliest stage, it not is a language to faced to the object,it used to come from to move to complete the mission of repetition primarily, proceed the client development and the menu of establishment AutoCAD and passing the simple mechanism to add orders for the AutoCAD.
The advantage of AutoLISP ,as follows:
1. The language rule is very simple, easy to learn and to use.
The source of AutoLISP and the language of LISP, with a general rule -form( LIST), describe the process with the data. Because this kind of rule is very simple, an engineer that he is not so thoroughly understand, need only through the short-term study, can be well-trained to control this language. The simplification of lisp,that is other language can’t compare with.The form of the " all-powerful" shielded the complicated process, can describe any data construction.
2. Aim at the AutoCAD directly, easily hand over with each other
The majority function provides is all to aim at the AutoCAD operation directly, the AutoLISP plait writes the operation that visit the AutoCAD sketch database( DWG) sketch database.
3. Explain to carry out, get effect instantly
Procedure member can circulate an AutoLISP code once, and also can the Command in AutoCAD bottom key-in the instruction of AutoLISP item by item, getting the result immediately.
[keywords]:
computer-aided designation ,AutoLISP, AutoCAD
目 录
第一章 任务和实现目标
1.1任务要求 ------------------------------------------------------------------------------------------ 5
1.2实现目标 ------------------------------------------------------------------------------------------ 5
1.3开发工具 ------------------------------------------------------------------------------------------ 5
1.4着手设计 ------------------------------------------------------------------------------------------ 5
第二章 AUTOCAD介绍
2.1 AUTOCAD历史------------------------------------------------------------------------------------6
2.2 AUTOCAD 优点---------------------------------------------------------------------------------- 7
2.3 AUTOCAD二次开发----------------------------------------------------------------------------- 7
1.必要性------------------------------------------------------------------------------------------ 7
2.开发工具--------------------------------------------------------------------------------------- 7
3. 开发内容--------------------------------------------------------------------------------------- 9
第三章 开发工具介绍
3.1 AUTOLISP 介绍---------------------------------------------------------------------------------- 10
1.关于AutoLISP------------------------------------------------------------------------- 10
2. 函数介绍-------------------------------------------------------------------------------- 10
3. 流程图------------------------------------------------------------------------------------13
3.2 Visual LISP介绍---------------------------------------------------------------------------------- 15
1. 关于Visual LISP ------------------------------------------------------------------------ 15
2. Visual LISP控制台---------------------------------------------------------------------- 15
3. 使用Visual LISP Text Editor---------------------------------------------------------- 16
4. Visual LISP格式化器------------------------------------------------------------------- 20
第四章 系统方案和实现过程
4.1 系统结构--------------------------------------------------------------------------------------------22
4. 2 模块划分--------------------------------------------------------------------------------------------24
4.3 实现过程--------------------------------------------------------------------------------------------25
4. 4 系统调试------------------------------------------------------------------------------------------- 36
第五章 小结 ------------------------------------------------------------------------------------------- 39
致谢 -----------------------------------------------------------------------------------------------------40
英文翻译 -----------------------------------------------------------------------------------------------41
参考文献 -----------------------------------------------------------------------------------------------48
参考文献:
张本龙、周潜、赵海东编著,AUTOCAD2000综合应用手册,华中理工大学出版社,2000.5
Sham.Tickoo著,辛洪兵等译,AUTOCAD2000高级定制,机械工业出版社,2001.3
Sham.Tickoo著,潘岚、卢飒、潘宏等译,AUTOCAD2000高级用户指南:设计、定制、开发(AUTOCAD2000 A Problem-solving Approch),机械工业出版社,2001.3
Farin G. Curves and Surfaces for Computer Aided Geometric Design A Practical Guide . 3rd Editon. Academic Press ,1993