第10章_AutoCAD2010_参数化绘图
4.1.2 草绘和尺寸驱动_AutoCAD 2010中文版参数化绘图_[共4页]
![4.1.2 草绘和尺寸驱动_AutoCAD 2010中文版参数化绘图_[共4页]](https://img.taocdn.com/s3/m/752990c8b7360b4c2f3f64b6.png)
AutoCAD 2010中文版参数化绘图
122 4.1.1 设计要求
首先根据产品的设计要求对产品的整个设计进行分析,如图4-2所示。
图4-2 设计要求
前道设备落料到传送带上,经传送带传递到下一台设备。
要在传送带和下一台设备之间加一个合适的传送装置,并且能够方便地调节高度和位置,以满足设备的各种需求。
4.1.2 草绘和尺寸驱动
1. 设置绘图环境。
(1) 设定绘图区域的大小为2 000×2 000。
双击鼠标中键使绘图区域充满整个图形窗口。
(2) 通过【线型控制】下拉列表打开【线型管理器】对话框,在对话框中设定线型的全局
比例因子为0.1。
(3) 打开极轴追踪、对象捕捉及捕捉追踪功能。
设置极轴追踪角度增量为90°,设定对象
捕捉方式为“端点”、“中点”、“圆心”及“交点”。
2. 绘制大体的轮廓。
(1) 打开附盘文件“4-1.dwg ”,如图4-2所示,其形状和位置均已固定。
(2) 选用【常用】选项卡,执行绘圆命令绘制图形,结果如图4-3所示。
图4-3 常规方法绘制的图形。
CAD2010教程

AutoCAD 还会根据您的选择创建一个新的工作空间,并将其添加到其它默认的工作空间中。
2. 工作界面的介绍(工作空间)
常见问题:命令行不见了怎么办? Ctrl+9
1
3. 系统选项的配置和工作中的作用(重点)
执行“工具(tools)”|“选项(options)”命令,打开“选项”对话框。“选项”对话框的内容极其丰富。 Files(文件选项卡):支持文件搜索路径:可以包含字体文件、菜单文件、被插入图形文件、线型文件和填充图案 文件等;解决问题:例如有时候图框上的 Logo 图片打开时不显示问题;用 Insert 命令插入图块时,给定图块文件名, 但未给定详细路径,AutoCAD 将自动在此路径查找该图块,如未找到该图块文件,则显示在搜索路径中未找到文件 的警告信息;或警告对话框提示“BASE.DCL”文件或“???.shx”字体文件未找到等问题。一般需重启 CAD 生效。
AutoCAD2010绘图简介

AutoCAD2010绘图简介
七、 选择对象
2 选择对象的方法
(2)“上一个(L)”选项:选取图形窗口内可见元素中最后 创建的对象。不管使用多少次“上一个(L)”选项,都 只有一个对象被选中 (3)“窗交(C)”选项
AutoCAD2010绘图简介
七、 选择对象
2 选择对象的方法 (4)“框(BOX)”选项:由“窗口”和“窗交”组合的一
二、 AutoCAD2010中文版经典工作界 面
7.坐标系图标 位于绘图窗口的左下角,表示当前绘图使用的坐 标系的形式以及坐标方向等。 8.模型/布局选择卡 模型/布局选择卡用于实现模型空间与图纸空间的 切换 。
AutoCAD2010绘图简介
二、 AutoCAD2010中文版经典工作界 面
9.菜单浏览器 AutoCAD2010提供有 菜单浏览器,单击菜 单浏览器,AutoCAD 会见浏览器展开,如 图所示。利用菜单浏 览器可以执行 AutoCAD的相应命令
二、 AutoCAD2010中文版 经典工作界面
1.标题栏 标题栏位于用户界面的顶部, 左端显示软件名AutoCAD2010, 其后是当前图形文件的名称, 右端显示最小化、最大化和关 闭按钮。 2.菜单栏 菜单栏位于标题栏的下方, 如图所示,它主要包括文件、 编辑、视图、插入、格式、工 具、绘图、标注、修改、窗口、 帮助这11个一级菜单。
AutoCAD2010绘图简介
六、 控制图形显示
2鸟瞰视图
在窗口中双击左键,出现一个 带箭头细实线矩形框,如图 所示左右移动鼠标,调整窗口 大小,上下移动鼠标调整窗口 位置,调整到合适位置后单击 右键,则在屏幕绘图区显示放 大、缩小显示矩形框框选内容
AutoCAD2010绘图简介
AutoCAD2010基础知识讲解

AutoCAD2010基础知识讲解图形是表达和交流思想的主要工具,随着计算机科学技术的不断发展,绘图工作早已由传统的手工绘图转换为计算机辅助绘图,利用计算机绘图是当今工程设计人员必须掌握的基本技术,而AutoCAD就是专门为计算机绘图开发的设计软件。
使用该软件不仅能够将设计方案用规范、美观的图纸表达出来,而且能有效地帮助设计人员提高设计水平及工作效率。
本文主要介绍AutoCAD 2010软件界面组成、菜单操作方法、基本功能和部分新功能,以及管理图形文件和设置绘图环境的方法和技巧。
本章学习要点:【菜单浏览器】按钮位于界面左上角。
单击该按钮,将弹出AutoCAD菜单,如图1-8所示。
该菜单中包含AutoCAD 2010图形文件基本操作全部命令,用户选择选项后即可执行相应操作。
2.快速访问工具栏AutoCAD 2010的快速访问工具栏中包含最常用操作的快捷按钮,方便用户使用。
在默认状态中,快速访问工具栏中包含多个快捷按钮,默认显示的按钮有【新建】、【打开】、【保存】、【打印】、【放弃】和【重做】按钮,可根据需要在展开的菜单中设置显示或隐藏按钮。
如果想在快速访问工具栏中添加或删除其他按钮,可以右击快速访问工具栏,在弹出的快捷菜单中选择【自定义快速访问工具栏】选项,在弹出的【自定义用户界面】对话框中进行设置即可。
3.标题栏标题栏位于应用程序窗口的最上面,用于显示当前正在运行的程序名及文件名等信息,如果是AutoCAD默认的图形文件,其名称为DrawingN.dwg(N是数字)。
单击标题栏右端的按钮,可以最小化、最大化或关闭应用程序窗口。
标题栏最左边是应用程序的小图标,单击它将会弹出一个AutoCAD窗口控制下拉菜单,可以进行最小化或最大化窗口、恢复窗口、移动窗口、关闭AutoCAD等操作。
标题栏位于AutoCAD 2010窗口界面的最上方。
在标题栏中除了显示当前软件名称,还可显示新建的或打开的文件名称等。
浅谈AutoCAD2010参数化功能

浅谈AutoCAD2010参数化功能贵州省经济学校向啟苗摘要:在计算机教学工作中,AutoCAD2010版新功能之一,参数化约束,发现界面极有个性,功能强大,操作快捷、简便,弥补软件的不足,特写此文,与大家共同学习和探索。
关键词:AutoCAD2010 新功能参数化几何标注管理约束参数化是AutoCAD2010的一项新功能,AutoCAD 2009及以前的版本是没有参数化约束功能的,然而参数化功能并不是什么新名词,其实在很多图形软件(如3DMAX等)中早就使用了参数化功能,因此,AutoCAD因为软件竞争的关系,在AutoCAD2010版引入了参数化功能。
这样对于AutoCAD使用人员来说,大大方便了大家的绘图操作。
那么AutoCAD2010参数化功能到底给用户绘图带来哪些方便,增添了哪些功能,作者就参数化功能谈谈个人的看法。
一、认识参数化参数,也叫参变量,是一个变量。
当我们在研究某一问题的时候,关心某几个变量的变化以及它们之间的相互关系,其中有一个或一些叫自变量,另一个或另一些叫因变量。
如果我们引入一个或一些另外的变量来描述自变量与因变量的变化,引入的变量本来并不是这一问题必须研究的变量,我们把这样的变量叫做参变量或参数。
参数化(parameterization)就是通过一组变量建立某种对应的关系。
在AutoCAD2010中引入了参数化建模和参数化设计。
所谓参数化建模就是通过一组参数来约定几何图形的几何关系和尺寸关系。
何谓参数化设计(Parameric Design)又称变量化设计是美国麻省理工学院Gossard教授提出来的,参数化设计通常是指软件设计者为绘图及修改图形提供一个软件环境,设计人员在这个环境下所绘制的任意图形均可以被参数化,修改图中的任一尺寸,均可实现尺寸驱动,引起相关图形的改变。
参数化设计的突出优点在于通过变更参数的方法来修改设计意图。
二、AutoCAD2010参数化功能AutoCAD2010参数化管理界面由三个部分组成,几何、标注和管理,几何就是几何约束,标注指的是尺寸约束,管理是对参数化进行管理。
CAD2010教程(最新完整版)

中文版AutoCAD工程制图 第 2章
• • • • • •
基本概念与基本操作
本章要点
安装、启动AutoCAD 2010 AutoCAD 2010经典工作界面 AutoCAD命令及其执行方式 图形文件管理 确定点的位置 绘图基本设置与操作
• AutoCAD 2010帮助功能
2.1 安装、启动AutoCAD 2010
2.5.2 相对坐标
相对坐标是指相对于前一坐标点 的坐标。相对坐标也有直接坐标、 极坐标、球坐标和柱坐标四种形 式,其输入格式与绝对坐标相同, 但要在输入的坐标前加前缀“ @‖ 。 x
100 100<45,85 85
y
45°
2.6 绘图基本设置与操作
2.6.1 设置图形界限
设置图形界限类似于手工绘图时选择绘图图纸的大小,但 具有更大的灵活性。 选择“格式” |― 图形界限”命令,即执行 LIMITS 命令, AutoCAD提示:
1.2 AutoCAD 2010的主要功能
• • • • • • • 二维绘图与编辑 创建表格 文字标注 尺寸标注 参数化绘图 三维绘图与编辑 视图显示控制
1.2 AutoCAD 2010的主要功能
• • • • • • 各种绘图实用工具 数据库管理 Internet功能 图形的输入、输出 图纸管理 开放的体系结构
2.3.2 透明命令
透明命令是指当执行 AutoCAD 的命令过程中可以执行的某 些命令。 当在绘图过程中需要透明执行某一命令时,可直接选择对应 的菜单命令或单击工具栏上的对应按钮,而后根据提示执行 对应的操作。透明命令执行完毕后, AutoCAD 会返回到执 行透明命令之前的提示,即继续执行对应的操作。 通过键盘执行透明命令的方法为:在当前提示信息后输入 “'‖符号,再输入对应的透明命令后按Enter键或Space键, 就可以根据提示执行该命令的对应操作,执行后 AutoCAD 会返回到透明执行此命令之前的提示。
AutoCAD2010基础教程

AutoCAD2010基础教程AutoCAD 2010 基础教程阅读43897人图形是表达和交流思想的主要工具,随着计算机科学技术的不断发展,绘图工作早已由传统的手工绘图转换为计算机辅助绘图,利用计算机绘图是当今工程设计人员必须掌握的基本技术,而AutoCAD就是专门为计算机绘图开发的设计软件。
使用该软件不仅能够将设计方案用规范、美观的图纸表达出来,而且能有效地帮助设计人员提高设计水平及工作效率。
本文主要介绍AutoCAD 2010软件界面组成、菜单操作方法、基本功能和部分新功能,以及管理图形文件和设置绘图环境的方法和技巧。
本章学习要点:熟悉AutoCAD 2010软件工作环境熟悉AutoCAD 2010软件的基本功能和新增功能掌握管理图形文件的方法了解绘图环境的设置方法掌握坐标系的定义方法1.1计算机辅助设计与AutoCAD简介计算机辅助设计作为工程设计领域中的主要技术,在设计、绘图和协作方面已经展示了其强大的技术实力。
工程技术人员可使用AutoCAD迅速而准确地绘制出所需要的图形,特别是AutoCAD强大的编辑功能、符号库和二次开发的功能,使其在建筑、机械和电子等领域得到了广泛的应用。
1.1.1计算机辅助设计计算机辅助设计(Computer Aided Design,CAD)是20世纪60年代发展起来的一门新兴学科,目前已经成为现代工业设计中十分重要的一项技术。
而AutoCAD系列软件以其便捷的绘图功能、友好的人机界面、强大的二次开发能力以及可靠的硬件接口,已经成为了世界上应用最广泛的CAD软件之一。
1.计算机辅助设计的概念计算机辅助设计这个概念是一个不断发展变化的概念。
在计算机应用的初级阶段,人们将其理解为计算机辅助设计,即利用计算机来解决大量繁琐的计算,使设计人员能够将更多的精力投入到算法和方案解决上。
然而,由于AutoCAD软件的普及和发展,在最近几年人们逐渐转变了观念,并对其进行重新定义,即计算机辅助设计是一种将人和计算机的最佳特性结合起来以辅助进行产品设计和分析的技术,是综合了计算机与工程设计方法的最新发展而形成的一门学科。
AutoCAD参数化绘图指南说明书

A Practical Guide to Parametric Drawing in AutoCAD Rick Ellis – Cadapult Software Solutions, Inc.Parametric design tools aren’t just for programs like Inventor software, Revit software, or AutoCAD Civil 3D software; there is also a set of parametric drawing tools that you can use to create dynamic relationships and constraints between objects in AutoCAD software. The parametric drawing tools will revolutionize the way that you draw and edit objects in AutoCAD software. This class will introduce you to parametric drawing in AutoCAD software by using both geometric and dimensional constraints to add intelligence to your objects. You will learn how using Auto Constrain and Inferred Constraints can help you quickly add constraints and change your process from drafting to modeling. If you’ve ever wanted geometry in your drawing to update based on changes that you’ve made to other objects, or if you’ve wanted to type a new value into a dimension and have the object update based on this new value, this class is for you.Learning ObjectivesAt the end of this class, you will be able to:1. Learn how to create geometric relationships between objects by adding constraints2. Learn how to define dimensional constraints3. Learn how to identity and edit constrained objects4. Learn how to use inferred constraints to have AutoCAD automatically define constraints for you Your AU ExpertsRick Ellis is the President of CADapult Software Solutions, Inc., where he provides training and consulting services to clients around the country, helping them get the most out of their design software investment. Rick specializes in AutoCAD® Civil 3D®, AutoCAD® Map 3D, Autodesk® InfraWorks™, AutoCAD® Raster Design, and AutoCAD®. He is a member of the Autodesk Developer Network, and author of several critically acclaimed books on AutoCAD Civil3D, and AutoCAD Map 3D; including the Practical Guide series. Rick continues to use AutoCAD Civil 3D on projects in a production environment, in addition to teaching classes to organizations both large and small around the country. This practical background and approach has made him a sought after instructor by organizations around the world.**************************@theRickEllisOverviewWhat is parametric drawing?The Autodesk Definition: “Feature in AutoCAD that assigns constraints to objects, establishing the distance, location, and orientation of objects with respect to other objects.”If the defini tion above didn’t answer all of your questions about parametric drawing, I’ll expand on that and go into a bit more detail. AutoCAD 2010 introduced Parametric drawing. This is not only a relatively new feature for AutoCAD, it is a new concept that will change the way that you create and edit drawings in AutoCAD. While this is a somewhat new feature for AutoCAD, similar tools for parametric design have been in other products like Inventor, Revit, and Civil 3D for some time and you may be familiar with them. Put simply, the idea of parametric drawing is that objects can be related to each other. For example, if you want two lines to be parallel, they would always be parallel. If you change one line then the other will update to match it. This is just one example. However, if you think about all the possibilities, and all the time that you have spent editing drawings to make sure that all the necessary and related changes have been made for a simple change to the design, these tools have the potential to revolutionize the way that you work.AutoCAD uses two types of Parametric Constraints:▪Geometric Constraints∙The Autodesk Definition: “Rules that define the geometric relationships of objects (or points of objects) elements and control how an object can change shape or size.Geometric constraints are coincident, collinear, concentric, equal, fix, horizontal, parallel,perpendicular, tangent, and vertical.”∙Sticky Object Snaps. They maintain the geometric relationship between objects rather than setting it once at the time you use the object snap and then allowing it to change inthe future.∙Add intelligence to your drawings.∙Allow you to think more about modeling and less about drafting.▪Dimensional Constraints∙The Autodesk Definition: “Parametric dimensions tha t control the size, angle, or position of geometry relative to the drawing or other objects. When dimensions are changed, theobject resizes.”∙You can type the value into a dimension and the object updates. It’s the opposite of associative dimensions. With Dimensional Constraints the dimension value drives thegeometry rather than the geometry driving the dimension.∙Can include equations.∙Can even reference other objects. For example, line 1 is twice the length of line 2.Exercise 1 – Working with Existing Constraints1. Open the drawing Widget Assembly complete.dwg from the folder called Completed Assemblyin the dataset.2. Select the block representing the slider on the shaft (identified by callout number 2).3. Move the block.4. Notice the block can only move along the shaft and the arm rotates as it moves.5. Double click the dimension d1 and change the value to 1.56. Notice that changing the value of the dimension moves the block.7. Select and move one of the callouts.8. Notice the entire row of callouts moves together.9. Try moving other pieces of this assembly to see the different constraints in action.10. Open the drawing Parametric - geometric.dwg from the dataset.11. Move and stretch different pieces of the orthographic projection to see how constraints have beenset up within it.Geometric ConstraintsGeometric Constraints maintain the geometric relationship between objects based on basic geometric properties of the entity or entities you apply them to. AutoCAD supports the following geometric constraint types:▪Coincident▪Co-linear▪Tangent▪Perpendicular▪Parallel▪Horizontal (relative to the current UCS X axis)▪Vertical (relative to the current UCS Y axis)▪Concentric▪Equal▪Symmetric▪Smooth▪FixedThe commands to create and manage Geometric Constraints can be found on the Parametric tab of the ribbon.The table below shows the types of objects that can be used to create geometric constraints and their constraint points.Tips when creating geometric constraints:▪When applying constraints between two entities AutoCAD modifies the second entity selected, leaving the first entity unmodified.▪If you convert an object that has constraints to a ployline the constraints are lost.▪If you explode a polyline that has constraints the constraints are lost.▪If you copy an object with constraints the constraints are copied if all the objects involved in the constraint are copied.Constraint BarsConstraint Bars provide a heads-up interface to help you manage geometric constraints in your drawings. Constraint Bars look and behave a lot like transparent floating tool bars, except that each button on a bar represents a single geometric constraint.When you place your cursor over individual constraints on a constraint bar AutoCAD highlights the button, the entity the constraint applies to, and the corresponding button and entity participating in the constraint.When you right-click on a constraint on the constraint bar there are several commands which you can perform on the constraint, including deleting the constraint, hiding the bar, or managing the constraint bar settings.To delete all constraints on an entity use the Delete Constraints command. Ribbon: Parametric tab >> Manage panel >> Delete Constraints.Exercise 2 – Working with Geometric Constraints1. Open the drawing Parametric - geometric.dwg from the dataset.2. Pan to a blank area of the drawing.3. Draw 4 individual lines similar to the graphic below.4. Add Geometric Constraints to make this a dynamic rectangle.a. Use the Coincident, Parallel, and Perpendicular constraints.5. Zoom extents to find the bracket in the drawing as displayed below.6. Add Geometric Constraints to make the bracket hinge at the corner while keeping both sides ofthe part the same size.7. Zoom extents to find the orthographic projection.8. Copy the orthographic projection.9. Remove all the constraints from the orthographic projection.10. Add geometric constraints to the orthographic projection to make it behave as the original.Auto ConstrainIf applying geometric constraints one at a times seems like a tedious task there is an option to let AutoCAD look for objects that can be constrained and add them for you. Auto Constrain examines entities you select and attempts to automatically constrain the geometry based on its current position.You can control the settings for the Auto Constrain command in the Constraint Settings dialog box. Ribbon: Parametric tab >> Geometric panel >> >> Constraint Settings.Here you can select the type(s) of constraints that you want the Auto Constrain command to apply. You can also set Tolerances for distance and angle. These tolerances will determine if constraints are applied and objects are modified when they are “close” to geometrica lly accurate. When used properly this can help clean up a drawing that was created without using object snaps. However, you want to choose your tolerances carefully as it will allow the Auto Constrain command to modify geometry. If you only want the Auto Constrain command to apply constraints where the geometry is perfect and not modify any geometry, set the tolerances to 0.Inferred ConstraintsInferred constraints automatically apply geometric constraints while creating and editing geometric objects, removing the need for you to add constraints later. The Infer Constraints mode works with your object snaps and is enabled with a toggle on the status bar.Once enabled object snaps that are used when creating or editing objects are also used to infer geometric constraints. Objects are not modified by inferred constraints.Exercise 3 – Working with Auto Constrain and Inferred Constraints1. Open the drawing Parametric – Inferred.dwg from the dataset.2. Pan to a blank area of the drawing.3. Draw a rectangle using the rectangle command.4. Use the Auto Constrain command to add constraints.5. Notice what constraints are added.6. Zoom extents to find the bracket in the drawing as displayed below.7. Use the Auto Constrain command to add constraints.8. Notice what constraints are added.9. Turn on Inferred constraints.10. Draw a rectangle using the rectangle command.11. Notice what constraints are added.Dimensional ConstraintsDimensional Constraints constrain objects by allowing you to enter values or formulas. They work similar to associative dimensions, just in reverse. While associative dimensions update the value of the dimension as the object changes, dimensional constraints update the object when the value of the dimension changes. The dimensions drive the geometry rather than the geometry driving the dimensions. Dimensional constraints come in the following types:▪Aligned▪Horizontal▪Vertical▪Radial▪Diameter▪AngularDimensional constraints can constrain the following properties:▪Distances between objects, or between points on objects▪Angles between objects, or between points on objects▪Sizes of arcs and circlesThere two different kinds of dimensional constraints:▪Dynamic∙Maintain the same size regardless of zoom level∙Can easily be turned on or off globally in the drawing∙Display using a fixed, predefined dimension style∙Position the textual information automatically, and provide triangle grips with which you can change the value of a dimensional constraint∙Do not display when the drawing is plotted▪Annotational∙Change their size when zooming in or out∙Display individually with layers∙Display using the current dimension style∙Provide grip capabilities that are similar to those on dimensions∙Display when the drawing is plottedIf you need to control the dimension style of dynamic constraints, or if you need to plot dimensional constraints, use the Properties palette to change dynamic constraints to annotational constraints.The commands to create and manage Dimensional Constraints can be found on the Parametric tab of the ribbon.Tips when creating dimensional constraints:▪When applying dimensional constraints AutoCAD modifies the constrained geometry to satisfy the new constraint.▪If you convert an object that has constraints to a ployline the constraints are lost.▪If you explode a polyline that has constraints the constraints are lost.▪If you copy an object with dimensional constraints the constraints are copied.▪Dimensional constraints can contain equations.The example above contains a rectangle with two basic dimensional constraints.The example above contains a rectangle with two dimensional constraints where the length (d1) is equal to twice the height (d2).You can manage all the values of your dimensional constraints with the Parameters Manager. Ribbon: Parametric tab >> Manage panel >> Parameters Manager.In the Parameters Manager you can edit expressions and even add user defined variables that you can use in expressions.Exercise 4 – Working with Dimensional Constraints1. Open the drawing Parametric - dimensions.dwg from the dataset.2. Zoom to the rectangle.a. It already has geometric constraints.3. Add Dimensional Constraints for the width and length.4. Edit the width to be 3.5. Edit the length to be twice the width by editing the expression.6. Zoom extents to find the bracket in the drawing as displayed below.a. It already has geometric constraints.7. Add a dimensional constraint to control the angle.8. Draw circles at each end of the part.9. Use a concentric geometric constraint to position them10. Add a dimensional constraint that makes them half the outer radius of the part.Constraints in Dynamic BlocksIntroduced in AutoCAD 2005, Dynamic Blocks extend the capabilities of traditional blocks by providing the ability to define custom grips and properties for your blocks which affect the geometry for the block. You create dynamic blocks by combining Block Actions and Block Action Parameters within the block definition. Now you can extend the power of blocks even further by adding geometric and dimensional constraints to your dynamic blocks.When you add geometric and dimensional constraints to dynamic blocks it is best to add them in the block editor using the commands on the Block Editor tab of the Ribbon.A Block Properties table allows you to define and control values for parameters and properties within a block definition. This will become the list of selectable values in the dynamic block.Exercise 5 – Working Constraints in Dynamic Blocks1. Open the drawing Parametric - blocks.dwg from the dataset.2. Open the block editor.a. Ribbon: Insert tab >> Block panel >> Block Editor.b. Name the new block AUParametric.3. Draw a rectangle using the rectangle command starting the lower left corner of the rectangle at0,0.4. Add Geometric Constraints to make this a dynamic rectangle.5. Add Dimensional Constraints for the width and length.6. Edit the width to be 5.7. Edit the length to be twice the width by editing the expression.8. Add a Block Table.a. Place the block table near the origin of the block.b. Placement of the block table does not need to be exact. It will be the location of a grip onthe block that can be used to select standard sizes.9. Enter 1 for the number of grips.10. Click the Add Properties button11. Select the d1 parameter and Click <<OK>>.12. Enter values for d1 as shown above.13. Click <<OK>> when finished.14. Close the block editor and save the changes.15. Insert the block anywhere in your drawing.16. Select the block and notice the available grips.a. You will be able to stretch it in the vertical direction and the rectangle will keep the 2:1ratio of length to width.b. Select the block table grip and you will see the predefined widths.c. Select one of the values and notice how the block resizes.ConclusionParametric drawing in AutoCAD with geometric and dimensional constraints is a powerful set of tools that may drastically change the way that you create and edit drawings. I hope that this introduction to these exciting features has got you thinking about ways that you can apply it to your own drawings and projects.I encourage you to try it out, start small at first, but I am confident that you fill not only find these tools a powerful time saver but also intuitive and easy to learn.。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
添加、编辑几何约束。 添加、编辑几何约束。 添加、编辑尺寸约束。 添加、编辑尺寸约束。 利用变量及表达式约束图形。 利用变量及表达式约束图形。 参数化绘图的一般方法
本章大纲
10.1几何约束 几何约束 10.2尺寸约束 尺寸约束 10.3参数化绘图的一般步骤 参数化绘图的一般步骤 10.4综合训练 利用参数化功能绘图 综合训练──利用参数化功能绘图 综合训练 10.5习题 习题
练习3 绘制平面图形,添加几何约束及尺寸约束,使图形处于完全约束状态, 练习 :绘制平面图形,添加几何约束及尺寸约束,使图形处于完全约束状态, 如下图所示。 如下图所示。
1 设定绘图区域大小为 设定绘图区域大小为200×200,并使该区域充满整个图形窗口显示出来。 × ,并使该区域充满整个图形窗口显示出来。 2 打开极轴追踪、对象捕捉及自动追踪பைடு நூலகம்能,设定对象捕捉方式为“端点”、 打开极轴追踪、对象捕捉及自动追踪功能,设定对象捕捉方式为“端点” 交点” 圆心” “交点”及“圆心”。 3 绘制图形,图形尺寸任意,如下图左图所示。让AutoCAD自动约束图形, 绘制图形,图形尺寸任意,如下图左图所示。 自动约束图形, 自动约束图形 对圆心A施加固定约束 对所有圆弧施加相等约束,如下图右图所示。 施加固定约束, 对圆心 施加固定约束,对所有圆弧施加相等约束,如下图右图所示。
10.1 几何约束
本节介绍添加及编辑几何约束的方法。 本节介绍添加及编辑几何约束的方法。
10.1.1 添加几何约束
几何约束用于确定二维对象间或对象上各点间的几何关系,如平行、垂直、 几何约束用于确定二维对象间或对象上各点间的几何关系,如平行、垂直、 同心或重合等。例如,可添加平行约束使两条线段平行, 同心或重合等。例如,可添加平行约束使两条线段平行,添加重合约束使两 端点重合等。 端点重合等。 通过【参数化】选项卡的【几何】面板来添加几何约束, 通过【参数化】选项卡的【几何】面板来添加几何约束,约束的种类如下 表所示。 表所示。
4 添加以下尺寸约束。 添加以下尺寸约束。 按钮,指定B、 点 输入约束值, (1)线性约束:单击 )线性约束: 按钮,指定 、C点,输入约束值,创建线性尺寸约 如下图左图所示。 束,如下图左图所示。 按钮,选择线段D、 ,输入角度值,创建角度约束。 (2)角度约束:单击 )角度约束: 按钮,选择线段 、E,输入角度值,创建角度约束。 按钮,选择圆弧,输入半径值,创建半径约束。 (3)半径约束:单击 )半径约束: 按钮,选择圆弧,输入半径值,创建半径约束。 (4)继续创建其余尺寸约束,结果如下图右图所示。添加尺寸约束的一般顺序 )继续创建其余尺寸约束,结果如下图右图所示。 先定形,后定位;先大尺寸,后小尺寸。 是,先定形,后定位;先大尺寸,后小尺寸。
10.2 尺寸约束
本节介绍添加及编辑尺寸约束的方法。 本节介绍添加及编辑尺寸约束的方法。
10.2.1 添加尺寸约束
尺寸约束控制二维对象的大小、角度及两点间距离等, 尺寸约束控制二维对象的大小、角度及两点间距离等,此类约束可以是数 也可是变量及方程式。改变尺寸约束,则约束将驱动对象发生相应变化。 值,也可是变量及方程式。改变尺寸约束,则约束将驱动对象发生相应变化。 可通过【参数化】选项卡的【标注】面板来添加尺寸约束。约束种类、 可通过【参数化】选项卡的【标注】面板来添加尺寸约束。约束种类、约 束转换及显示如下表所示。 束转换及显示如下表所示。
练习1:绘制平面图形,图形尺寸任意,如下图左图所示。编辑图形, 练习 :绘制平面图形,图形尺寸任意,如下图左图所示。编辑图形,然后给 图中对象添加几何约束,结果如下图右图所示。 图中对象添加几何约束,结果如下图右图所示。
1 绘制平面图形,图形尺寸任意,如下图左图所示。修剪多余线条,结果如下 绘制平面图形,图形尺寸任意,如下图左图所示。修剪多余线条, 图右图所示。 图右图所示。
1 2 3 4
5 选择下图 所示快捷菜单中的【约束栏设置】选项或单击【几何】面板右下 选择下图1所示快捷菜单中的 约束栏设置】选项或单击【几何】 所示快捷菜单中的【 角的箭头将弹出【约束设置】对话框,如下图2所示 所示。 角的箭头将弹出【约束设置】对话框,如下图 所示。通过该对话框可以设置 哪种类型的约束显示在约束栏图标中,还可以设置约束栏图标的透明度。 哪种类型的约束显示在约束栏图标中,还可以设置约束栏图标的透明度。 6 选择受约束的对象,单击【参数化】选项卡中【管理】面板上的 选择受约束的对象,单击【参数化】选项卡中【管理】 按钮 将删除图形中所有几何约束和尺寸约束。 ,将删除图形中所有几何约束和尺寸约束。
按钮
名称 线性约束 对齐约束 半径约束 直径约束 角度约束 约束两点之间的水平或竖直距离
功能
约束两点、点与直线、 约束两点、点与直线、直线与直线间的距离 约束圆或者圆弧的半径 约束圆或者圆弧的直径 约束直线间的夹角、圆弧的圆心角或3个点构成的角度 约束直线间的夹角、圆弧的圆心角或 个点构成的角度 (1) 将普通尺寸标注(与标注对象关联)转换为动态约束或注释 ) 将普通尺寸标注(与标注对象关联) 性约束 (2) 使动态约束与注释性约束相互转换 ) (3) 利用“形式 ) 利用“形式(F)”选项指定当前尺寸约束为动态约束或注释性 选项指定当前尺寸约束为动态约束或注释性 约束 显示或隐藏图形内的动态约束
几何约束按钮
名称 平行约束 垂直约束 水平约束 竖直约束 相切约束 平滑约束 对称约束 相等约束 使两条直线保持相互平行
功能
使两条直线或多段线的夹角保持90° 使两条直线或多段线的夹角保持 ° 使一条直线或一对点与当前UCS的x轴保持平行 的 轴保持平行 使一条直线或一对点与当前 使一条直线或一对点与当前UCS的y轴保持平行 的 轴保持平行 使一条直线或一对点与当前 使两条曲线保持相切或与其延长线保持相切 使一条样条曲线与其他样条曲线、直线、 使一条样条曲线与其他样条曲线、直线、圆弧或多段线保持 几何连续性 使两个对象或两个点关于选定直线保持对称 使两条直线或多段线具有相同长度, 使两条直线或多段线具有相同长度,或使圆弧具有相同半径 值 根据选择对象自动添加几何约束。单击【几何】面板右下角 根据选择对象自动添加几何约束。单击【几何】 的箭头,打开【约束设置】对话框,通过【自动约束】 的箭头,打开【约束设置】对话框,通过【自动约束】 选项卡设置添加各类约束的优先级及是否添加约束的公 差值
5 绘制平面图形,图形尺寸任意,如下图左图所示。旋转及移动图形,结 绘制平面图形,图形尺寸任意,如下图左图所示。旋转及移动图形, 果如下图右图所示。 果如下图右图所示。
6 为图形内部的线框添加自动约束,然后在线段 、F间加入平行约束,结 为图形内部的线框添加自动约束,然后在线段E、 间加入平行约束 间加入平行约束, 果如下图所示。 果如下图所示。
按钮,捕捉 点 如下图所示。 按钮,捕捉A点,如下图所示。 按钮,先选择圆弧B,再选线段C。 按钮,先选择圆弧 ,再选线段 。 按钮,选择线段D。 按钮,选择线段 。
4 绘制两个圆,如下图左图所示。给两个圆添加同心约束,结果如下图右图 绘制两个圆,如下图左图所示。给两个圆添加同心约束, 所示。指定圆弧圆心时,可利用“ 捕捉。 所示。指定圆弧圆心时,可利用“CEN”捕捉。 捕捉
自动约束
在添加几何约束时,选择两个对象的顺序将决定对象怎样更新。通常, 在添加几何约束时,选择两个对象的顺序将决定对象怎样更新。通常,所 选的第二个对象会根据第一个对象进行调整。例如,应用垂直约束时, 选的第二个对象会根据第一个对象进行调整。例如,应用垂直约束时,选择的 第二个对象将调整为垂直于第一个对象。 第二个对象将调整为垂直于第一个对象。
10.1.2编辑几何约束 10.1.2编辑几何约束
添加几何约束后,在对象的旁边出现约束图标。 添加几何约束后,在对象的旁边出现约束图标。将光标移动到图标或图形 对象上, 将亮显相关的对象及约束图标。 对象上,AutoCAD将亮显相关的对象及约束图标。对已加到图形中的几何 将亮显相关的对象及约束图标 约束可以进行显示、隐藏和删除等操作。 约束可以进行显示、隐藏和删除等操作。 练习2:编辑几何约束。 练习 :编辑几何约束。 绘制平面图形,并添加几何约束,如下图所示。图中两条长线段平行且相 绘制平面图形,并添加几何约束,如下图所示。 两条短线段垂直且相等。 等;两条短线段垂直且相等。 单击【参数化】选项卡中【几何】 按钮, 单击【参数化】选项卡中【几何】面板上的 按钮,图形中的所 有几何约束将全部隐藏。 有几何约束将全部隐藏。 单击【参数化】选项卡中【几何】 按钮, 单击【参数化】选项卡中【几何】面板上的 按钮,则图形中所 有的几何约束将全部显示。 有的几何约束将全部显示。 将鼠标光标放到某一约束上,该约束将加亮显示, 将鼠标光标放到某一约束上,该约束将加亮显示,单击鼠标右键弹出快捷 菜单,如下图所示。选择快捷菜单中的【删除】 菜单,如下图所示。选择快捷菜单中的【删除】选项可以将该几何约束删 选择快捷菜单的【隐藏】选项,该几何约束将被隐藏, 除。选择快捷菜单的【隐藏】选项,该几何约束将被隐藏,要想重新显示 该几何约束,运用【参数化】选项卡中【几何】 按钮。 该几何约束,运用【参数化】选项卡中【几何】面板上的 按钮。
图1 图2
10.1.3修改已添加几何约束的对象 10.1.3修改已添加几何约束的对象
可通过以下方法编辑受约束的几何对象。 可通过以下方法编辑受约束的几何对象。 使用关键点编辑模式修改受约束的几何图形, 使用关键点编辑模式修改受约束的几何图形,该图形会保留应用的所 有约束。 有约束。 使用MOVE、COPY、ROTATE和SCALE等命令修改受约束的几何图 使用 、 、 和 等命令修改受约束的几何图 形后,结果会保留应用于对象的约束。 形后,结果会保留应用于对象的约束。 在有些情况下,使用TRIM、EXTEND及BREAK等命令修改受约束的 在有些情况下,使用 、 及 等命令修改受约束的 对象后,所加约束将被删除。 对象后,所加约束将被删除。