Black FridayUpgrade your career this Black Friday. Get up to ₹60,000 Scholarship on IIT programsUp to ₹60K Black Friday Scholarship52 seats leftOffer ends Fri, 27 Nov, 11:59 pm IST.

Black Friday Scholarship – IIT Jammu & IIT Roorkee

The best Black Friday deal isn't a gadget. It's your next career move.

Get up to ₹60,000 Black Friday Scholarship on our PG programs with IIT Jammu and iHUB DivyaSampark, IIT Roorkee. IIT certification, 12 live sessions with IIT faculty and 100% placement assistance.

Only 52 seats left. Offer ends Fri, 27 Nov, 11:59 pm IST

3,905 engineers placed since 2019 · 1,276 hiring companies

By submitting you agree to our Terms and Privacy Policy.

Your free demo class is requested

Browse courses

AutoCAD Dimension Constraints and Dynamic Blocks, Worked on an ISO Nut

Geometric vs dimensional constraints in AutoCAD, what each one locks, the Parameters Manager and a degrees-of-freedom count, then a dynamic block that switches an ISO 4032 hex nut between M6, M8 and M10 from a Block Properties Table.

AutoCAD Dimension Constraints and Dynamic Blocks, Worked on an ISO Nut

In AutoCAD, geometric constraints fix how objects relate (parallel, tangent, concentric, horizontal) and dimensional constraints fix their sizes (a distance, a diameter, an angle). Apply shape first with GEOMCONSTRAINT, then size with DIMCONSTRAINT, and name the sizes in the Parameters Manager. Put the same constraints inside a block, add a Block Properties Table, and one dynamic block switches between sizes such as an M6, M8 or M10 nut.

In short (AutoCAD 2027 help and IS 1364 (Part 3), checked 23 Nov 2026)

  • Shape first, then size. Autodesk recommends geometric constraints to set the shape and dimensional constraints to set the size. A fully constrained set also needs at least one Fix constraint.
  • Our M10 nut sketch starts with 18 degrees of freedom and needs exactly 14 geometric and 2 dimensional constraints to reach 0. A 17th constraint (the across-corners size) would over-constrain it.
  • Dynamic constraints do not plot; annotational ones do. A reference parameter only reports a size, shown in parentheses.
  • ISO 4032 nut sizes: width across flats s = 10, 13 and 16 mm and maximum height m = 5.2, 6.8 and 8.4 mm for M6, M8 and M10 (IS 1364 (Part 3):2002, identical with ISO 4032:1999).
  • AutoCAD LT can't create or edit constraints. It can view them, edit constrained geometry and change values in the Parameters Manager.

This guide is for mechanical engineering students and junior draughtsmen who can already draw and dimension in AutoCAD and now want drawings that keep their design intent. It is part of Skill-Lync's AutoCAD Essentials for Mechanical Engineers series. We rewrote it on 23 Nov 2026 against the AutoCAD 2027 help. All of it uses one part, an ISO hexagon nut. The constraint counts come from a script we kept with the post, and the nut sizes come from the Indian standard.

What is the difference between geometric and dimensional constraints in AutoCAD?

A geometric constraint controls how 2D objects relate to each other: a line stays horizontal, two lines stay parallel, a circle stays tangent to a side. A dimensional constraint controls a value: a distance, an angle, a radius or a diameter. Geometric constraints decide the shape; dimensional constraints decide its size, and changing their values reshapes the geometry.

Both belong to what Autodesk calls parametric drawing. The difference shows when you edit. Drag a grip on a geometrically constrained sketch and it can still grow or shrink, but it keeps its relationships. Add dimensional constraints and the sizes are locked too, so a change happens only when you type a new value.

Geometric constraintDimensional constraint
ControlsRelationships: parallel, perpendicular, tangent, coincident, equal, fixedValues: linear, horizontal, vertical, aligned, angular, radius, diameter
Main commandGEOMCONSTRAINT (or GCPARALLEL, GCTANGENT and the other GC commands)DIMCONSTRAINT (or DCLINEAR, DCDIAMETER and the other DC commands)
Shown asIcons on a constraint bar; coincident shows as a small blue squareA dimension with a name and value, such as d1=25
Can you edit it?No. Delete it and apply a different oneYes. Change the value or type an expression
ApplyFirst, to set the shapeSecond, to set the size

Selection order matters for some geometric constraints. The second object you pick moves to suit the first: with Perpendicular, the second line turns to meet the first at 90°.

What does each geometric constraint lock?

AutoCAD 2027 has 12 geometric constraints. Each removes one or more degrees of freedom (DOF), the independent ways a sketch can still move or change. A line in 2D has 4 DOF (two endpoints), a circle 3 (centre and radius). The right-hand column is our count from standard 2D sketch geometry, not an Autodesk figure.

Constraint (command)What it does, per AutodeskDOF removed (our count)
Horizontal (GCHORIZONTAL)Line or pair of points parallel to the X axis of the current UCS1
Vertical (GCVERTICAL)Line or pair of points parallel to the Y axis1
Perpendicular (GCPERPENDICULAR)Two lines at 90° to each other1
Parallel (GCPARALLEL)Two lines parallel to each other1
Tangent (GCTANGENT)Two curves keep a point of tangency, or their extensions do1
Smooth (GCSMOOTH)A spline joins another spline, line, arc or polyline with G2 (curvature) continuitydepends on the spline
Coincident (GCCOINCIDENT)Two points together, or a point on a curve or its extension2 (point to point), 1 (point to curve)
Concentric (GCCONCENTRIC)Two arcs, circles or ellipses share a centre2
Collinear (GCCOLLINEAR)Two or more line segments lie on the same line2 per extra line
Symmetric (GCSYMMETRIC)Objects or points mirror each other about a selected line2 for a pair of points
Equal (GCEQUAL)Lines the same length, or arcs and circles the same radius1
Fix (GCFIX)Locks a point or curve in position relative to the World Coordinate System2 for a point; a fixed curve is locked in place

Constraints can go on single segments of a polyline as if they were separate objects. That matters for the nut, because POLYGON draws a closed polyline.

Where are GEOMCONSTRAINT, DIMCONSTRAINT, AUTOCONSTRAIN and PARAMETERS in AutoCAD?

All four live on the Parametric tab of the ribbon. AutoConstrain and Show/Hide sit on its Geometric panel. Convert and Show/Hide Dynamic Constraints sit on the Dimensional panel. The Parameters Manager is on the Manage panel. You can also type each command name.

CommandWhat it doesWhere Autodesk documents it
GEOMCONSTRAINTApplies any of the 12 geometric constraints; each also has its own GC commandParametric tab, Geometric panel (the help's Find button points to each icon)
AUTOCONSTRAINApplies geometric constraints to a selection set, using the types, order and tolerances set on the AutoConstrain tab of Constraint SettingsParametric tab > Geometric panel > AutoConstrain
DIMCONSTRAINTApplies dimensional constraints, or converts associative dimensions to constraints (Convert option, DCCONVERT)Parametric tab > Dimensional panel (Convert is there)
PARAMETERSOpens the Parameters Manager paletteParametric tab > Manage panel > Parameters Manager
DELCONSTRAINTDeletes every geometric and dimensional constraint from the selected objectsCommand line

Two more switches save clicks. Infer Constraints (status bar button, or the CONSTRAINTINFER setting) adds constraints as you draw: LINE and PLINE add coincident constraints, RECTANG adds parallel and perpendicular ones, and FILLET adds tangent and coincident ones. AUTOCONSTRAIN does a whole selection at once, but Autodesk warns you will usually still add and remove some by hand afterwards.

Should I use dynamic or annotational dimensional constraints?

Use dynamic constraints while you design and annotational constraints when the constraint must print. Dynamic is the default: it keeps one size on screen at any zoom, uses a fixed style and never plots. Annotational constraints behave like ordinary dimensions: they use the current dimension style, sit on layers and plot.

Dynamic (default)Annotational
Size when zoomingStays the same on screenChanges with zoom, like a dimension
StyleFixed, predefinedCurrent dimension style
Show or hideAll at once (DCDISPLAY)By layer
PlotsNoYes
Set byCCONSTRAINTFORM = 0CCONSTRAINTFORM = 1, or the Form option (DCFORM)

Either form can become a reference parameter through the Reference property in the Properties palette. A reference parameter is driven: it reports a size but does not control it, and its text is always in parentheses. AutoCAD will not turn it back into a driving constraint if that would over-constrain the geometry.

How do named parameters and expressions work in the Parameters Manager?

Every dimensional constraint creates a variable named d1, dia1 and so on. In the Parameters Manager you rename it (s for width across flats, d for bore) and replace its value with an expression that refers to other names. Change one value and every constraint that depends on it updates.

The palette shows Name, Expression and Value columns; you edit Name, Expression and Description, never Value. Expressions accept + − * / ^ % and brackets, functions such as sqrt, sin, cos, round, min, max and d2r, and the constants pi and e. With imperial units a dash reads as a unit separator, so type 5' -9" with a space, not 5'-9".

For the nut, the across-corners width of a sharp hexagon follows from the width across flats:

In the Parameters Manager we call it ec, not e, because e is already a built-in constant (2.718...) in AutoCAD expressions. The expression is 2*s/sqrt(3), and for s = 16 mm it gives 18.48 mm. When a dynamic constraint refers to other parameters, AutoCAD shows the prefix fx: before its name. That warns you not to overwrite the formula by typing a plain number.

What does "fully constrained" mean, and how many constraints does a hex nut need?

A sketch is fully constrained when it has no degrees of freedom left: shape, size, position and rotation are all fixed. Autodesk adds that a fully constrained set needs at least one Fix constraint. Our M10 nut top view, a hexagon polyline plus two circles, starts at 18 DOF and needs 14 geometric and 2 dimensional constraints.

M10 hex nut top view: a hexagon with a 16 mm flats circle and a 10 mm bore circle. Badges show 6 tangent, 3 parallel, 2 equal, 1 horizontal, 1 fix and 1 concentric constraint; dia1 s = 16 and dia2 d = 10 drive the size; across corners ec = 18.48 is a reference in parentheses.
The 16 constraints on the M10 nut sketch. Badges are our simplified drawing of AutoCAD's constraint bars; same-colour parallel badges are one pair. Drawn by a script from the numbers in this post.

The count goes like this. The hexagon is a polyline, so its six vertices (12 DOF) are already joined. The flats circle and the bore circle add 3 DOF each, 18 in all.

  1. Tangent x6: each side touches the flats circle. 12 DOF left.
  2. Parallel x3: opposite sides in pairs. 9 left.
  3. Equal x2: bottom side = lower-right side = upper-right side. 7 left. The hexagon is now regular; only its centre, size and rotation can change.
  4. Horizontal x1 on the bottom flat stops rotation. 6 left.
  5. Fix x1 on the circle centre point stops it moving. 4 left.
  6. Concentric x1 puts the bore on the same centre. 2 left.
  7. Diameter s = 16 on the flats circle (its diameter is the width across flats). 1 left.
  8. Diameter d = 10 on the bore. 0 left.
Bar chart of degrees of freedom: 18 at the start, 12 after 6 tangents, 9 after 3 parallels, 7 after 2 equals, 6 after horizontal, 4 after fix, 2 after concentric, 1 after diameter s and 0 after diameter d.
Degrees of freedom left after each step, from the rank of the constraint equations in our script (calc.py, kept with this post).

Two traps show up in the same sketch. First, six tangents and five Equal constraints look like enough, but on a hexagon drawn round a circle one of the five Equals is implied by the other four. The shape can still alternate: with an 8 mm flats radius, tangent lengths of 3.73 and 5.60 mm give six equal 9.33 mm sides that do not form a regular hexagon. That is why the scheme above uses three Parallels. Second, once s and d are set, a third driving dimension across the corners adds nothing new, and AutoCAD blocks any constraint that would over-constrain the geometry. Make it a reference parameter instead and it reads (ec = 18.48).

How do parameters and actions make a dynamic block?

A dynamic block is a block definition with rules added in the Block Editor (BEDIT). A parameter puts a grip or a custom property on the block; an action says which objects move, stretch, rotate or flip when that parameter changes. A parameter alone does nothing. Constraints and a Block Properties Table are the other way to drive a block.

BACTION pairs them like this:

Parameter (BPARAMETER)Actions it can driveMechanical use
PointMove, StretchA movable centre mark or note
LinearMove, Stretch, Scale, ArraySlot length, bolt length, plate width
PolarMove, Stretch, Polar Stretch, Scale, ArrayAn arm with length and angle
XYMove, Stretch, Scale, ArrayA plate sized in X and Y, a hole grid
RotationRotateA lever or clamp position
FlipFlipLeft- and right-hand versions of a bracket
LookupLookupA drop-down of named sizes
Visibilitynone: works through visibility statesTop view or front view of one part
Alignment, Basepointnone: they act on their ownAligning to a shaft line; moving the base point

Parameter options worth knowing: a Linear parameter can keep its start point fixed or its midpoint (both ends then move equally), and a Value Set (List or Increment) limits the grip to allowed values. Stretch, scale and value sets are worked step by step in our guide to stretch, scale and attributes in dynamic blocks, so this post concentrates on constraints, visibility and tables.

How do I build an ISO hex nut block that switches between M6, M8 and M10?

Draw the nut once with constraints, name its sizes s, d and m, and put a row for each size in a Block Properties Table. The sizes below are from Table 1 of IS 1364 (Part 3):2002, which is identical with ISO 4032:1999. We use the nominal s and the maximum height m.

The hex nut block in two visibility states for M10. TOP: hexagon with width across flats s, flats circle, bore d and the Size grip. FRONT: rectangle ec = 2*s/sqrt(3) = 18.48 mm wide and m = 8.4 mm high with face lines a = 9.24 mm apart, 4.62 mm in from the left edge.
One block, two visibility states. s, d and m come from the table; ec, a and (ec−a)/2 are expressions. M10 values in mm.
  1. Open the Block Editor. Insert tab > Block Definition panel > Block Editor (or BEDIT; it is also on the Home tab's Block panel). Name the new block HEXNUT_ISO4032 and work in millimetres.
  2. Draw the top view at M6 size. POLYGON, 6 sides, centre 0,0, option Circumscribed about circle, radius 5. That radius is measured to the middle of each side, so it is half of s = 10. Typing the radius as a value draws the bottom edge at the snap angle, horizontal by default. Add a circle of radius 5 (the flats circle) and one of radius 3 (the bore) at 0,0.
  3. Constrain the shape. Apply the 14 geometric constraints from the list above. The Block Editor has the same geometric constraints as the drawing. Turn on Block Editor tab > Manage panel > Constraint Status (BCONSTATUSMODE = 1) to colour objects as under-, fully or over-constrained.
  4. Add constraint parameters, not plain dimensional constraints. Run BCPARAMETER, Diameter, on the flats circle and rename it s; do the same on the bore and call it d. Only constraint parameters become editable properties of the inserted block. A plain DIMCONSTRAINT inside a block does not.
  5. Draw and constrain the front view. A rectangle and two vertical face lines. Constrain the four sides horizontal and vertical, put each face-line end on the top or bottom edge, make the face lines vertical and fix the bottom-left corner. Then add BCPARAMETER constraints: width ec, height m, spacing a between the face lines, and the edge-to-face-line distance. In the Parameters Manager give them the expressions 2*s/sqrt(3), s/sqrt(3) and (ec-a)/2. Our script counts 16 DOF here and 0 after these 15 constraints.
  6. Add visibility states. BPARAMETER, Visibility (Block Editor tab, Action Parameters panel). Then Visibility panel > Visibility States: create TOP and FRONT. In TOP, select the front-view objects and use Make Invisible; in FRONT, hide the top view.
  7. Build the table. Block Editor tab > Dimensional panel > Block Table (BTABLE). Add Properties: s, d and m. New Properties: a String user parameter called Size. Fill one row per size, tick "Block properties must match a row", and press Audit to check every row is valid.
  8. Test and save. Test Block (BTESTBLOCK), pick each row from the table grip, check both visibility states, then BSAVE.
Block properties table: M6 d 6, s 10, m 5.2, ec 11.55 (standard e min 11.05); M8 d 8, s 13, m 6.8, ec 15.01 (e min 14.38); M10 d 10, s 16, m 8.4, ec 18.48 (e min 17.77).
The three rows the table holds, the ec each row computes, and the standard's minimum across-corners width as a check.

The check column is worth a look. Our sharp-cornered ec (11.55, 15.01, 18.48 mm) is always above the standard's minimum (11.05, 14.38, 17.77 mm), which works out to 1.13 times the minimum s in all three rows. So the drawing is never smaller than a real nut. One Indian detail: the 1967 edition of IS 1364 gave M10 a 17 mm width across flats. The standard moved to 16 mm in line with ISO, and 17 mm stopped being permitted from 1 January 1995, so an M10 on an older drawing may still show 17. The current BIS edition is IS 1364 (Part 3):2026, the sixth revision, covering M5 to M39.

Want the block to carry a part number or material? Attributes can be columns in the same Block Properties Table. In AutoCAD LT the table takes only action parameters and attributes; user and constraint parameters need full AutoCAD.

Why not just use a Scale action for nut sizes?

Because a fastener family does not scale uniformly. Scaling the M6 nut by 16/10 = 1.6 to get the M10 width across flats gives a 9.6 mm bore instead of 10 mm and a height of 8.32 mm instead of 8.4 mm. Scaling by 1.3 for M8 gives a 7.8 mm bore instead of 8 mm. The ratio d/s is 0.60, 0.615 and 0.625 across the three sizes, so each size needs its own values, which is exactly what a table row gives.

What is a lookup table, and how is it different from the Block Properties Table?

A lookup table is the older route: you add a Lookup parameter and a Lookup action, and BLOOKUPTABLE opens the Property Lookup Table. Input properties are other parameters' values (a linear distance, a visibility state); lookup properties are the labels you choose. With Allow Reverse Lookup on, the block shows a drop-down that sets the inputs from a label.

The Block Properties Table is the newer route: one table per block, with parameters as columns and each row a full set of values. Use it when constraints drive the block. Use a lookup table when the block is driven by action parameters, or when it must be built in AutoCAD LT. There, a practical nut block is three visibility states, one true-size nut drawing each, with a lookup or visibility drop-down to pick M6, M8 or M10. Constraint-driven blocks made in full AutoCAD still work in LT "without restriction", Autodesk says; LT just cannot author the constraints.

One gotcha: the BLOOKUPTABLE command is disabled when BACTIONBARMODE is 1. Adding the lookup action still opens the table.

Where do flip, rotation and chain actions fit in a mechanical block?

A Flip parameter with a Flip action mirrors chosen objects about a reflection line, so one bracket block gives both left- and right-hand versions. A Rotation parameter with a Rotate action turns chosen objects about the parameter's base point, for example a clamp arm. You can rename the two flip states in the Properties palette so the drop-down says something useful.

Chain Actions decides whether moving one parameter can trigger another. Take a slotted bracket: a Linear parameter SLOT with a Stretch action lengthens the slot, and a Point parameter at the slot end carries a Move action for a centre mark. Put the Point parameter in the stretch's selection set and set its Chain Actions to Yes, and the centre mark follows the slot end. Leave it at No and the mark stays put while the slot grows.

Why does AutoCAD say a constraint would over-constrain the geometry?

Because the new constraint either repeats something the other constraints already decide or contradicts them. AutoCAD prevents both. In the nut, a driving across-corners size and a fifth Equal are both redundant. Delete a constraint that is doing the same job, or make the new size a reference parameter that only reports.

Other common mistakes:

  • Stopping short of fully constrained in a block. Autodesk says to always fully constrain geometry in a dynamic block definition that has constraints, or insertion behaves unpredictably. Check with Constraint Status.
  • No Fix constraint. Without one the shape can be right and still slide away from the insertion point.
  • Constraining a dynamic block reference in the drawing. That hides its dynamic grips; you can still change values in Properties, but the grips return only when the constraints are removed.
  • Mixing constraints with conflicting actions. Autodesk warns that constraints can conflict with parameters and actions in the same block. Drive a set of geometry one way, not both.
  • Forgetting Chain Actions. A parameter inside another action's selection set does not fire its own actions unless Chain Actions is Yes.
  • Wrong pick order. With two-object constraints the second object moves to the first, so pick the reference object first.

You can remove constraints one at a time (hover over the icon and press Delete) or all at once from a selection with DELCONSTRAINT. To edit through them for a moment, select a grip and tap Shift; AutoCAD relaxes them during the edit and restores whatever is still valid afterwards.

Where does this fit in Skill-Lync's AutoCAD course?

Blocks, constraints and layers come in weeks 8 to 12 of Skill-Lync's AutoCAD Essentials for Mechanical Engineers, after the dimensioning and GD&T weeks. The course runs 12 weeks with 44 recorded lessons (1,230 minutes, about 20.5 hours), and its first three lessons are free on Grow. The full course is also on YouTube. Before constraints, it helps to be sure of baseline, continue and ordinate dimensions, polylines and fillets, chamfers and grip editing. The rest of the series is on the Skill-Lync blog.

Frequently asked questions

Can I add constraints in AutoCAD LT?

No. In AutoCAD LT you cannot create or edit geometric or dimensional constraints. You can show and hide constraints, edit constrained geometry, change values in the Parameters Manager, and use constrained drawings and blocks made in full AutoCAD. LT can still author dynamic blocks with action parameters, visibility states and lookup tables.

How do I convert existing dimensions into constraints?

Use Parametric tab > Dimensional panel > Convert (DCCONVERT, also the Convert option of DIMCONSTRAINT) and select associative dimensions. Inside the Block Editor, BCPARAMETER's Convert option turns dimensional constraints into constraint parameters, which show as properties of the inserted block.

Why don't my dimensional constraints appear on the plot?

Because they are dynamic, the default form, and dynamic constraints never plot. Select them and change their form to Annotational in the Properties palette, or set CCONSTRAINTFORM to 1 before creating new ones. Annotational constraints use the current dimension style and plot like dimensions.

What is the difference between a user parameter and a constraint parameter?

A constraint parameter is a dimensional constraint made with BCPARAMETER in the Block Editor; it drives geometry and shows as a block property. A user parameter is a named value or equation you create in the Parameters Manager or the Block Properties Table. If it holds a plain value it is editable; if it holds an equation it is read-only.

Is AUTOCONSTRAIN enough to fully constrain a sketch?

Rarely. AUTOCONSTRAIN adds geometric constraints only, based on how objects already sit within its tolerances, and Autodesk expects you to add and remove some by hand afterwards. You still need dimensional constraints for size and a Fix for position. Check the result with Constraint Status in the Block Editor.

Sources and further reading

Want this on your résumé?

Talk to a counsellor.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.