Skip to content

Align commands

MDALIGN and its seven one-click variants move every selected object so a chosen edge (or centre line) of its bounding box lands on the same line, without changing the spacing logic of your drawing: each object moves only along one axis.

The target is always taken from the overall bounds of the selection:

  • Left: everything moves to the leftmost edge of the selection.
  • Right: to the rightmost edge.
  • Top / Bottom: to the top / bottom edge.
  • Horizontal centres: every object’s centre lands on one vertical line through the middle of the selection.
  • Vertical centres: every object’s centre lands on one horizontal line through the middle.
Command: MDALIGN
Select objects: (or use the objects already selected)
Align edge [Left/Right/Top/Bottom/HorizontalCenters/VerticalCenters]: L
Aligned 5 object(s) (left).

MDALIGN prompts for the edge with AutoCAD keywords. In a French AutoCAD the prompt reads Bord d'alignement [Gauche/Droite/Haut/Bas/CentresHorizontaux/CentresVerticaux].

Each edge also has a direct command that skips the prompt: these are what the ribbon and right-click menu use:

Command Edge
MDALIGNLEFT Left
MDALIGNRIGHT Right
MDALIGNTOP Top
MDALIGNBOTTOM Bottom
MDALIGNHCENTER Horizontal centres
MDALIGNVCENTER Vertical centres

MDALIGNGRID moves the centre of each selected object to the nearest point of the current viewport’s snap grid, as defined by the SNAPBASE (origin) and SNAPUNIT (spacing) system variables.

  • Both axes snap independently; if an axis has a snap spacing of 0, that axis is left untouched.
  • Useful for a schematic or legend whose blocks have drifted off-grid.