AutoCAD

Parametrics 103: That Figures!

10 Jun, 2010 By: Bill Fane

Learning Curve tutorial: Annotational dimensional constraints let AutoCAD users create intelligent drawings that capture design intent.


It was a warm, sunny Wednesday afternoon. Captain LearnCurve was on special assignment as his driver skillfully piloted the Lincoln Town Car northbound on I-35.

Here we go again! Now what on earth have you bought, and/or what are you up to now?

Nothing much. The Captain and his fellow CAD Brothers had finished presenting their classes at the AUGI CAD Camp in Austin, Texas, on Tuesday and were headed to Dallas for the next event in an on-going series.

The CAD Brothers: Robert Green, Bill Fane, Rick Ellis, and David Cohn.
The CAD Brothers: Robert Green, Bill Fane, Rick Ellis, and David Cohn.

David Cohn had arranged for the rental car. When we picked it up we were told that the generic sedan he had reserved wasn't available. Would we mind taking the Lincoln instead as the rental company wanted it back in Dallas anyway? We figured they should be paying us, because they wanted the car delivered.

That's it! This month's topic! Figuring!

My previous two articles have covered different aspects of AutoCAD's parametric design functionality, which was introduced in AutoCAD 2009. The first article, "Parametrics 101: Don't Be Afraid," discussed geometric constraints and "Parametrics 102: Sizing Things Up" introduced dimensional constraints. Between them I showed how geometric constraints effectively are sticky object snaps that hold drawing objects together, and dimensional constraints are the reverse of normal associative dimensions in that the object changes size if you change the value of the dimension. This time around I'll delve into annotational dimension constraints, which use current dimension style, plot, and scale to match drawing dimensions.

Are You My Type?
At the end of the last article, I mentioned that parametric dimensions come in two versions. Everything I explained last time used the default dynamic dimensional constraints that are of a fixed style, automatically stay the same screen size as you zoom in and out, and don't plot. They can also be made invisible, either collectively or singly.

Let's look at the other type of dimensional constraint. When the CConstraintForm system variable is changed from its default value of 0 to 1, any subsequent dimensions are applied as annotational dimensional constraints. Annotational dimensional constraints differ from dynamic ones in three significant ways:

First, they are applied using the current dimension style.

Second, they plot.

Third, their zoom behavior matches conventional dimensions in that they appear larger and smaller as you zoom in and out.

The More Things Change
Just to add to the fun, annotational dimensions also can be annotative in that they can size themselves automatically to match the drawing scale.

To change the value of CConstraintForm using the ribbon, click on the Parametric tab, then on the Dimensional tab, then on the down arrow to expand this tab, and then on the desired setting. The new value is saved in the system registry, so all subsequent drawings will use its current setting.

What if you change your mind after you have placed parametric dimensions? No problem. The Properties command will let you switch existing dimensions back and forth between types.

Better yet, you can convert existing associative dimensions from older drawings to parametric ones by using the DcConvert command  (Parametric > Dimensional > Convert). Similarly, geometric constraints can be added to existing objects, so it is easy to convert legacy drawings into parametric ones.

Okay, I lied. There's also a third type of parametric dimension. If you try to apply too many dimensions, resulting in an overconstrained condition, then AutoCAD will complain and offer to apply a reference dimension instead. A reference dimension will report its current value if anything else changes, but you cannot drive geometry changes by changing its value. So why bother? Why not just use a normal associative dimension? Good question. The only answer I can think of is that they can be dynamic, with all the behavior characteristics implied by that type.

Once again, the Properties command will let you switch existing dimensions back and forth between normal and reference types. Reference dimensions also can be dynamic or annotational, and the latter can be annotative as well.

Pick a Type, Any Type
The AutoCAD documentation states that dynamic dimensional constraints are ideal for design work, so that is the default setting of CConstraintFormIt also states that manufacturing dimensions should be applied as normal associative dimensions.

I disagree with the documentation and have changed the setting. My experience is that nearly all of the dimensions used to design and constrain something also are needed to make the real object, so it doesn't seem to make sense to dimension everything twice. In addition, AutoCAD won't let you apply too many parametric dimensions, but you could easily end up with conflicting dimensions if you apply the documentation ones later.

But Wait! There's More!
I've covered the basics of parametrics, so let's get into the really interesting stuff.

Below is the example drawing I used last time, but this time I have added the hole and its hidden lines, all suitably constrained and dimensioned. Yes, I know I said I prefer annotational dimensions, but I want to show you something.

Dimensional constraints have been added to this drawing.
Dimensional constraints have been added to this drawing. (Click image to view larger version.)

Note how the value of each dimension is actually an equation, such as d5 = 0.5000. What this really says is that this dimension is actually named d5" and that its current value is 0.5000 units.

1 2 


Add comment

Note: Comments are moderated and will appear live after approval by the site moderator.

AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Poll


Poll not yet available.



Cadalyst Magazine - Buy Now