AUTOCAD平面图形的参数化绘制

合集下载

CAD图形参数化建模方法

CAD图形参数化建模方法

CAD图形参数化建模方法CAD(Computer-Aided Design,计算机辅助设计)是一种利用计算机技术进行产品设计和制图的方法。

在CAD软件中,图形参数化建模是一种常见的设计方法,它允许用户通过定义参数来实时改变设计中的尺寸和形状,从而快速生成各种变种设计。

下面将介绍一些常用的CAD图形参数化建模方法和技巧。

1. 定义参数在CAD软件中,首先需要定义一些参数,例如长度、宽度、高度等。

参数可以通过在绘图过程中输入数值来定义,也可以在设计表格中输入数值。

定义参数后,可以在后续的设计中引用这些参数。

2. 使用公式在CAD软件中,可以使用公式来计算参数的值。

例如,可以通过定义一个长度参数和一个宽度参数,然后使用公式“长度*宽度”来计算面积参数。

这样,在改变长度或宽度参数时,面积参数会自动更新。

3. 关联对象CAD软件中的对象可以相互关联,通过关联对象可以实现参数化建模。

例如,可以定义一个长方形的长度和宽度参数,然后将这两个参数分别关联到两个对应的线段上。

这样,在改变长度或宽度参数时,线段的长度会自动更新,从而实现了参数化建模。

4. 使用约束CAD软件中的约束是一种限制条件,用于控制对象之间的关系。

通过使用约束,可以实现参数化建模。

例如,可以使用水平或垂直约束来保持对象的水平或垂直关系,使用相等约束来保持对象的长度相等。

这样,在改变参数时,受约束的对象会自动调整,保持设计的一致性。

5. 使用图形变换CAD软件中的图形变换功能可以对对象进行平移、旋转、缩放等操作。

通过使用图形变换,可以实现参数化建模。

例如,可以定义一个长度参数,并使用平移操作将一个对象复制到指定的距离上。

这样,在改变长度参数时,复制的对象会自动移动到新的位置。

6. 使用草图特征CAD软件中的草图特征是一种基于草图的设计方法,可以实现参数化建模。

草图特征允许用户通过在二维平面上绘制几何图形来创建三维实体。

通过定义和调整草图中的参数,可以实现尺寸和形状的参数化。

AutoCAD 应用教程第10章 参数化绘图

AutoCAD 应用教程第10章 参数化绘图

尺寸约束分为两种形式:动态约束和注释性约束。 默认情况下是动态约束,系统变量 CCONSTRAINTFORM为0。若为1,则默认尺寸约束为 注释性约束。 •动态约束:标注外观由固定的预定义标注样式决定,不 能修改,且不能被打印。在缩放操作过程中动态约束保 持相同大小。 •注释性约束:标注外观由当前标注样式控制,可以修改, 也可打印。在缩放操作过程中注释性约束的大小发生变 化。可把注释性约束放在同一图层上,设置颜色及改变 可见性。 动态约束与注释性约束间可相互转换,选择尺寸约束, 单击鼠标右键,选择【特性】命令,打开【特性】对话 框,在【约束形式】下拉列表中指定尺寸约束要采用的 形式。
第10章 参数化绘图
10.1
几何约束
尺寸约束 参数化绘图的一般步骤
10.2
10.3
10.4
综合训练——利用参数化功能绘图
习题
10.5
10.1
几何约束
本节将介绍添加及编辑几何约束的方法。
10.1.1
添加几何约束
几何约束用于确定二维对象间或对象上各点间的几 何关系,如平行、垂直、同心或重合等。例如,可添加 平行约束使两条线段平行,添加重合约束使两端点重合 等。 用户可通过【参数化】选项卡的【几何】面板来添 加几何约束,约束的种类如表10-1所示。
10.2.2
编辑尺寸约束
对于已创建的尺寸约束,可采用以下方法进行编辑。 (1)双击尺寸约束或利用DDEDIT命令编辑约束的值、变 量名称或表达式。 (2)选中尺寸约束,拖动与其关联的三角形关键点改变约 束的值,同时驱动图形对象改变。 (3)选中约束,单击鼠标右键,利用快捷菜单中的相应命 令编辑约束。
2. 利用AutoCAD的参数化功能绘制平面图形,如图10-54所示。给所 有对象添加几何约束及尺寸约束,使图形处于完全约束状态。

CAD软件中的参数化图形设计技巧

CAD软件中的参数化图形设计技巧

CAD软件中的参数化图形设计技巧CAD软件是计算机辅助设计的一种工具,可以帮助工程师和设计师更加高效地进行图形设计和建模工作。

在CAD软件中,参数化图形设计是一项非常重要的技巧。

通过参数化设计,我们可以对图形进行灵活的调整和修改,提高工作效率。

下面介绍几种常用的CAD软件中的参数化图形设计技巧。

1. 参数化尺寸设计在CAD软件中,我们可以使用尺寸工具添加尺寸标注,然后将这些尺寸标注与图形之间建立关联。

通过这种方式,当我们需要修改图形的尺寸时,只需要修改对应的尺寸标注,相关图形将会自动更新。

这种技巧可以帮助我们快速地调整图形的大小,而无需手动重新绘制整个图形。

2. 参数化约束设计参数化约束设计是CAD软件中非常常见的技巧之一。

通过给图形添加约束条件,比如平行、垂直、等长等约束,我们可以确保图形在修改尺寸时保持一定的关系,避免出现不符合要求的形状。

当我们需要调整图形时,只需修改相关约束条件,图形将会自动调整以满足新的要求。

3. 参数化模块化设计在大型工程项目中,图形设计往往需要多个设计师协同完成。

为了提高工作效率和图形一致性,我们可以将图形设计分为多个模块,并通过参数化设计使这些模块之间相互关联。

例如,在汽车设计中,我们可以将车身、底盘、发动机等各个部分设计为独立的模块,并通过参数化设计使这些模块自动适应整体设计的修改。

4. 参数化曲线设计在CAD软件中,我们可以通过参数化曲线设计创建各种复杂的曲线形状。

使用参数化曲线设计工具,我们可以通过控制参数的数值,自定义曲线的形状和特征。

这种技巧常用于汽车车身设计、产品外观设计等领域。

5. 参数化装配设计参数化装配设计是CAD软件中非常重要的一项技巧。

通过将不同的零部件设计为独立的模块,并通过参数化设计使其与整体设计相互关联,我们可以快速地生成各种不同的装配方案。

这种技巧对于工程项目中的组件设计和装配方案选择非常有帮助。

总结起来,CAD软件中的参数化图形设计技巧可以大大提高工作效率和设计质量。

CAD绘图中的动态块和参数化设计

CAD绘图中的动态块和参数化设计

CAD绘图中的动态块和参数化设计动态块和参数化设计是CAD绘图中非常有用的功能,它们可以帮助我们快速创建和编辑图形,提高工作效率。

在本文中,我将为大家介绍如何在AutoCAD中应用动态块和参数化设计。

1. 动态块动态块是指可以根据用户输入的不同数值或选择的不同选项而自动调整形状、大小和位置的块。

它提供了更灵活的绘图方式,可以减少我们在绘图过程中的重复工作,提高绘图的准确性和效率。

在AutoCAD中,创建动态块的第一步是先创建一个普通的块。

在绘图界面上,我们选择“块定义”命令,然后通过绘制图形和设置属性来创建我们需要的块。

完成之后,我们可以选择“创建参数”命令来定义动态块的参数。

参数是动态块中决定属性值的变量。

我们可以定义数值、长度、角度、比例等不同类型的参数,并给它们设置范围和默认值。

例如,我们可以定义一个长度参数,设置其范围为10到100,然后在动态块中使用这个参数控制框的大小。

在定义了参数之后,我们可以选择“约束”命令来给动态块添加约束条件。

约束用于确保动态块的形状和结构始终符合我们的要求。

例如,我们可以添加长度约束,限制某个线段的长度始终与参数值相等。

这样,当我们改变参数值时,线段的长度也会自动改变。

最后,我们可以为动态块添加可编辑的属性。

这些属性可以是文字、选择框等形式,用于用户输入数值或选择选项。

属性值可以与参数关联,使动态块能够根据用户输入的不同数值或选项而自动调整。

2. 参数化设计参数化设计是指在CAD绘图中使用参数和约束来创建具有可调整性的模型。

它可以帮助我们在设计过程中快速进行修改和调整,提高设计效率,并使得我们可以轻松地创建不同尺寸和形状的模型。

在AutoCAD中,参数化设计的基本思路是先创建几何图形,然后通过添加参数和约束来控制图形的特征和属性。

我们可以根据设计要求选择合适的参数类型和约束条件。

例如,我们可以创建一个矩形,并给矩形的长和宽添加长度参数。

然后,我们可以添加长度约束,限制矩形的长和宽与参数值相等。

利用CAD进行参数化建模的方法

利用CAD进行参数化建模的方法

利用CAD进行参数化建模的方法现代工程设计中,CAD(计算机辅助设计)软件成为不可或缺的工具。

在CAD软件中,参数化建模是一种高效且灵活的建模方法,它允许设计师通过调整参数直接修改模型,而无需手动更改每个构件。

本文将介绍一些利用CAD软件进行参数化建模的方法和技巧。

1. 了解参数化建模的概念参数化建模是一种基于参数的建模方法,它使用一组参数来定义和控制模型的几何形状、尺寸和位置。

通过修改这些参数的值,可以快速且准确地修改模型,以满足不同的设计需求。

2. 使用CAD软件的参数功能大多数CAD软件都提供了参数功能,例如Solidworks的“设计表”、“驱动尺寸”等功能,CATIA的“公式编辑器”等。

通过这些功能,可以为模型的各个构件定义参数,并与其他参数关联,实现模型的参数化创建。

3. 定义参数在进行参数化建模之前,需要首先确定模型的设计要求和需要调整的参数。

例如,一个桌子模型可能包括参数如上桌面长度、宽度、高度、腿部数量、腿部长度等。

通过定义这些参数,可以将模型的设计和尺寸灵活地调整。

4. 创建参数化特征在CAD软件中,可以使用各种工具和命令创建参数化特征。

这些特征可以是基础几何形状,如圆柱体、立方体等,也可以是复杂的特征,如倒角、孔洞等。

通过将这些特征与定义的参数关联起来,可以实现模型的自动调整。

5. 设置参数关系在CAD软件中,可以使用公式、函数、表格等方式设置参数之间的关系。

通过将参数与数学表达式关联,可以实现复杂的参数计算和关联。

例如,可以通过设置参数A与参数B的关系为A=2*B,当修改参数B的值时,参数A的值将自动更新。

6. 创建设计表一些CAD软件提供了“设计表”功能,可以将多个参数组织在一个表格中,并直接在表格中修改参数值。

通过使用设计表,可以方便地对模型的多个参数进行同时调整,提高建模效率。

7. 使用驱动尺寸CAD软件中的“驱动尺寸”功能允许将几何尺寸与参数关联,而不是直接指定固定的数值。

CAD软件中的参数化建模技巧与实例

CAD软件中的参数化建模技巧与实例

CAD软件中的参数化建模技巧与实例参数化建模是CAD软件中一项重要的功能,它能够帮助设计师更快速、更精确地创建模型,并且在后续的设计过程中进行灵活的调整和修改。

本文将介绍CAD软件中的一些参数化建模技巧,并提供一些实例进行演示。

1. 使用参数化尺寸:在CAD软件中,设计师可以使用参数化尺寸来定义模型的大小和形状。

通过设置参数化尺寸,可以方便地对模型进行调整和修改,而无需重新绘制整个模型。

例如,可以定义一个长方形的宽和高为参数化尺寸,当需要改变长方形的大小时,只需修改参数值即可。

2. 基于关系的约束:CAD软件中的参数化建模功能通常还提供了基于关系的约束功能,即指定模型中不同元素之间的关系。

通过定义这些关系,可以确保模型在调整和修改时保持一定的约束。

例如,可以指定两条线段之间始终保持垂直,或者两个平面之间始终保持平行。

3. 使用变量和表达式:CAD软件通常允许设计师使用变量和表达式来定义模型的参数化属性。

通过使用变量和表达式,可以更灵活地控制模型的属性,并进行复杂的计算。

例如,可以定义一个变量来表示模型的倾斜角度,并在之后的设计过程中使用这个变量来控制模型的倾斜程度。

4. 高级参数化建模技巧:除了基本的参数化建模技巧之外,CAD软件还提供了一些高级的参数化建模功能,可以进一步提高设计效率和精度。

例如,可以使用特征驱动设计(FDD)功能,在模型中添加特征并通过调整这些特征来改变模型的形状。

还可以使用参数化模型库,在设计中使用预定义的模型,以减少重复工作并提高一致性。

现在,让我们通过一个实例来演示CAD软件中的参数化建模技巧。

假设我们要设计一个简单的书架,可以通过调整参数来改变书架的宽度和高度。

首先,在CAD软件中创建一个长方形,设置宽度和高度为参数化尺寸。

接下来,使用基于关系的约束功能,将长方形的四个角固定在原点和基准线上,以确保长方形始终保持在正确的位置和方向。

然后,使用变量和表达式功能,定义一个变量来表示书架的宽度和高度,并将这个变量应用到长方形的尺寸属性中。

CAD中的参数化建模技巧与案例分析

CAD中的参数化建模技巧与案例分析

CAD中的参数化建模技巧与案例分析在CAD设计中,参数化建模是一种重要的技术手段,它可以大大提高设计效率和准确性。

本文将介绍一些常用的参数化建模技巧,并通过实际案例分析来说明其应用。

首先,我们来介绍一下参数化建模的基本概念。

参数化建模是通过设定各种参数和相关约束条件来描述和控制模型的形状和尺寸。

通过修改参数的数值,模型可以自动地更新,从而实现快速、准确地进行设计和分析。

一、公式参数公式参数是一种常见的参数化建模技巧。

在CAD软件中,可以通过输入相应的数学公式来定义模型参数。

例如,我们可以通过输入直径$d$和高度$h$的公式来创建一个圆柱体的模型:直径$d$决定了圆柱体的底面,而高度$h$决定了圆柱体的长度。

二、关系参数关系参数是另一种常用的参数化建模技巧。

在CAD软件中,可以通过定义各个元素之间的关系来实现参数化。

例如,我们可以通过定义圆的半径为矩形宽度的一半来实现一个圆形在矩形内部。

当矩形的宽度改变时,圆的半径也会相应地改变。

三、模块化设计模块化设计是一种有效的参数化建模技巧。

通过将复杂模型分解成多个简单的子模块,可以更加灵活地进行设计和修改。

例如,我们可以将车身模型分解成车身前部、车身中部和车身后部等几个子模块,这样可以实现对不同部分的独立修改和组合。

四、参数驱动设计参数驱动设计是一种高级的参数化建模技巧。

在CAD软件中,可以通过建立参数化关系来实现模型的自动更新。

例如,我们可以设置一个参数$x$,当$x$的数值改变时,模型中的各个尺寸和形状都会自动更新。

这样,设计师只需要修改几个关键参数,就可以得到不同尺寸和形状的模型。

接下来,我们通过一个简单的案例来进一步说明参数化建模的应用。

案例分析:设计一个可调节高度的椅子模型假设我们需要设计一个可调节高度的椅子模型。

首先,我们可以利用公式参数来定义椅子的座面直径$d$和高度$h$。

然后,我们可以通过关系参数来定义座面与四条腿之间的距离为座面半径的一半。

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. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《AutoCAD机械制图教程》教案
图8-1平面图形
15分钟三、相关知识讲解
1.几何约束
2.标注约束
3.推断约束
4.约束设置
5.参数化绘图的一般步骤
演示法
讲授法
25分钟四、任务实施
第1步:设定绘图区域大小为800mm×800mm,并使该区域充满显
示于整个图形窗口。

第2步:打开极轴追踪、对象捕捉及自动追踪功能,设定对象捕捉
方式为“端点”、“交点”及“圆心”。

第3步:绘制图形,图形尺寸任意,如图8-2(a)所示。

修剪并
倒圆角形成外轮廓草图,如图8-2(b)所示。

(a)(b)
图8-2 绘制外轮廓草图
第4步:启动自动添加几何约束功能,给所有图形对象添加几何约
束,如图8-3所示。

演示法
讲练结合法
图8-3自动添加几何约束
第5步:给圆弧A、B、C添加相等约束,使3个圆弧的半径相等;对左下角点添加固定约束,如图8-4(a)所示。

给圆心D、F及圆弧中点E添加水平约束,使三点位于同一条水平线上,如图8-4(b)所示。

操作时,可利用点命令和对象捕捉确定要约束的目标点。

(a)(b)
图8-4 创建约束
第6步:单击〖参数化〗工具栏上的“”按钮,隐藏几何约束,并添加半径约束、角度约束、水平约束、竖直约束,如图8-5所示。

将角度值修改为60°,结果如图8-6所示。

图8-5 添加标注约束图8-6 修改角度约束
第7步:绘制圆及线段,如图8-7所示。

修剪多余线条并自动添加几何约束,如图8-8所示。

图8-7 图8-8
第8步:给圆弧G、H添加同心约束;给线段I、J添加平行约束等,如图8-9所示。

图8-9图8-10
第9步:复制线框,如图8-10所示。

对新线框添加同心约束,如图8-11所示。

第10步:使圆弧L、M的圆心位于同一条水平线上,并让它们的半径相等,如图8-12所示。

图8-11 图8-12
第11步:添加半径约束,使圆弧的半径尺寸为40,如图8-13所示。

将半径值由40改为30,结果如图8-14所示。

图8-13 图8-14
第12步:修改标注约束名称的格式。

在【约束设置】对话框的{标注}选项卡中,“标注名称格式”下拉列表中选择“值”选项,再取消对“为注释性约束显示锁定图标”选项的选择,绘制中心线,结果如图8-1所示。

第13步:保存图形。

20分钟五、模仿练习
练习法现场指导法
10分钟
六、分层教学与举一反三
图8-15
练习法
5分钟七、评价考核
根据学生完成任务及练习的质量与数量进行评价。

记分评价法
5分钟八、课堂小结
重点小结【约束设置】对话框的使用方法,几何约束和标注
约束的添加与编辑方法。

九、作业布置
完成下面技能训练与检测并预习任务9的相关知识。

1. 利用AutoCAD的参数化功能绘制平面图形,如图8-16所
示。

先画出图形的大致形状,然后给所有对象添加几何约束及标注
约束,使图形处于完全约束状态。

修改其中部分尺寸使图形变形,
结果如图8-17所示。

讲解法
图8-15 图8-16
2. 利用AutoCAD的参数化功能绘制平面图形,如图8-17至
图8-18所示。

先画出图形的大致形状,然后给所有对象添加几何
约束及标注约束,使图形处于完全约束状态。

图8-17
图8-18
教研室主任签名累计课时 2。

相关文档
最新文档