Skip to content

Align & Distribute: overview

Updated

Align & Distribute adds fourteen layout commands to AutoCAD® software: they align any selection of objects to a shared edge or centre line, distribute them evenly, space them with an exact gap, or snap them to the drawing grid.

All commands work on the geometric bounding box of each object, so they behave the same for lines, blocks, text, hatches, or anything else with extents.

  • Ribbon: the Arrange panel on the MD Automation tab, with an Align and a Distribute drop-down. The button face remembers the last command you used.
  • Right-click: select objects, right-click, and open the Arrange submenu.
  • Command line: type the command name.

The Arrange panel on the MD Automation ribbon tab, with its Align and Distribute drop-downs

The right-click Arrange submenu: Align Left, Right and Horizontal Centers, Distribute Horizontally and with Gap, the same five for the vertical axis, then Align To Grid

CommandWhat it does
MDALIGNPrompts for the edge (Left / Right / Top / Bottom / HorizontalCenters / VerticalCenters), then aligns.
MDALIGNLEFTAlign to the leftmost edge of the selection.
MDALIGNRIGHTAlign to the rightmost edge.
MDALIGNTOPAlign to the top edge.
MDALIGNBOTTOMAlign to the bottom edge.
MDALIGNHCENTERAlign all horizontal centres on one vertical line.
MDALIGNVCENTERAlign all vertical centres on one horizontal line.
MDALIGNGRIDSnap each object’s centre to the nearest snap-grid point.

Full details on the align commands →

CommandWhat it does
MDDISTRIBUTEPrompts for the axis (Horizontal / Vertical), then spaces object centres evenly.
MDDISTRIBUTEHDistribute horizontally, no prompt.
MDDISTRIBUTEVDistribute vertically, no prompt.
MDDISTRIBUTEGAPPrompts for axis and gap, then lays objects out with a fixed edge-to-edge gap.
MDDISTRIBUTEGAPHGap-distribute horizontally (prompts only for the gap).
MDDISTRIBUTEGAPVGap-distribute vertically (prompts only for the gap).

Full details on the distribute commands →

CommandWhat it does
MDALIGNDISTRIBUTESETTINGSWalk every preference in one pass; see Settings below.

MDALIGNDISTRIBUTESETTINGS walks each preference in turn, defaulting to its current value, and writes once at the end, so a run you abandon halfway changes nothing.

SettingControlsDefault
Ignore block attributesWhether a block reference is measured by its geometry alone, ignoring its attribute text. Turn it off and two inserts of the same block whose attribute text differs are measured differently, so they no longer line up on the geometry they share.Yes