How-to guide · how to add an alignment parameter to a block in autocad
How to add an alignment parameter to a dynamic block in AutoCAD
By Saumyajit Maity · Published 1 Mar 2023 · Updated 2 Jul 2024
An alignment parameter is the one dynamic behaviour that needs no action to go with it. Add it, and the block automatically rotates — and optionally flips — to line up with whatever geometry you hover the alignment grip over. Drag a door, a switch or a fitting near a wall and it snaps parallel or perpendicular to that wall without you typing a single angle. It is the feature that makes blocks feel like they understand the drawing.
Because an alignment parameter is self-contained, it is one of the quickest upgrades you can give a block, and one of the most appreciated by anyone placing your blocks all day. It removes the tedious rotate-and-nudge dance every time a block meets an angled wall.
This guide adds an alignment parameter from scratch, covers the choice between aligning parallel and perpendicular, and explains where the alignment grip belongs so the block reads its surroundings correctly.
Step 1 — Open the block and pick the alignment edge
Run BEDIT and open the block. Decide which edge of the block should sit flush against the geometry it aligns to. For a door, that is usually the line of the opening; for a wall-mounted fitting, it is the back face that touches the wall. The alignment grip you add will line that chosen edge up with whatever it hovers over.
Knowing the alignment edge before you place the parameter means you can position the grip and set its direction so the block lands the right way round. Placing it without thinking often gives a block that aligns, but back-to-front.
Step 2 — Add the Alignment parameter
On the Parameters tab, click Alignment. AutoCAD asks for the base point of the alignment line — pick a point on the alignment edge — then for the alignment direction, a second point that sets which way the edge faces. The parameter appears as a single arrow grip; there is no second grip and, crucially, no separate action to add.
That single grip is the whole feature. When the block is inserted, hovering that grip over a line or a polyline edge makes the block rotate to match. The base point and direction you set here decide which way the block orients when it snaps.
Step 3 — Choose parallel or perpendicular alignment
Select the Alignment parameter and open Properties. The Alignment Type can be set to Perpendicular or Tangent (parallel). Tangent makes the block's alignment edge run parallel to the geometry it touches — right for a door sitting in a wall, or a sofa against a wall. Perpendicular makes the edge meet the geometry at a right angle — right for something that projects from a wall, like a bracket.
Pick the type that matches how the block meets its surroundings in real life. Most architectural blocks that sit in or along walls want Tangent; getting this one property right is what makes the snap feel natural rather than fighting you.
Step 4 — Test the alignment on real geometry
Run BTESTBLOCK, but this time you also need something to align to — draw a couple of lines at different angles in the test window, including an angled one. Hover the alignment grip over each line. The block should rotate to match the line's angle as you move along it, and click to lock in.
Test against an angled wall specifically, because aligning to horizontal and vertical lines can hide a back-to-front problem that only shows on a slope. If the block aligns but faces the wrong way, return to the parameter and reverse its direction point.
Step 5 — Save and use it in a real drawing
Save the block and close the editor. Insert it into a plan with angled walls and drag the alignment grip onto a wall line — the block spins to sit flush automatically. This is especially powerful for doors and windows in buildings that are not all on orthogonal grids, where manually rotating every opening is slow and error-prone.
The alignment grip co-exists with the normal grips, so a user can still move the block freely; alignment only kicks in when they grab that specific grip and hover over geometry. Combined with a flip and a stretch, an alignment parameter completes a door block that places itself in any wall at any angle.
Pitfalls with alignment parameters
The first thing to know is that an alignment parameter takes no action — people coming from stretch and rotate often hunt for a matching action that does not exist. Add the parameter and you are done; the snapping behaviour is built in.
The second pitfall is direction. If the block aligns but ends up mirrored or back-to-front, the alignment direction point was set on the wrong side; reverse it. The third is choosing the wrong alignment type — a door set to Perpendicular when it should be Tangent will sit across the wall instead of in it. Finally, the alignment edge should be a real, clean edge of the block; if the base point sits in empty space, the block may align but stand off the wall by a gap.
Free download
Browse the full library — DWG & DXF, no signup.
Questions
Frequently asked
Why doesn't an alignment parameter need an action?+
Alignment is the one parameter that is self-contained. The snapping and rotating behaviour is built into the parameter itself, so there is no separate action to add — placing the parameter is the whole job.
What is the difference between Tangent and Perpendicular alignment?+
Tangent makes the block's alignment edge run parallel to the geometry it touches, ideal for a door or sofa against a wall. Perpendicular makes the edge meet the geometry at a right angle, ideal for something projecting from a wall.
Why does my block align but face the wrong way?+
The alignment direction point was set on the wrong side of the base point. Open the Alignment parameter and reverse its direction so the block's front faces the correct way when it snaps.
Can I still move the block freely after adding alignment?+
Yes. The alignment grip only triggers snapping when you grab it and hover over geometry. The block's normal move and insertion grips still work for free placement.
Related downloads
Blocks for this guide
Popular blocks to download
Related categories
Related guides
How-to guide
How to Insert a DWG Block in BricsCAD
Insert a DWG block in BricsCAD — use the Blocks panel or INSERT command, fix unit scaling, place and rotate, then build a reusable BricsCAD library.
How-to guide
How to Insert a DWG Block in DraftSight
Insert a DWG block in DraftSight — use INSERTBLOCK or Design Resources, set units so it scales right, place it, and save it to a reusable library.
How-to guide
How to Insert a DXF in LibreCAD
Insert a DXF file in LibreCAD — why LibreCAD needs DXF not DWG, how to import or insert a block, fix the millimetre scaling, and place it cleanly on a layer.

