align
¶
Align the selection.
Signature¶
align
align first|last [frame]
align first last
align first|last second
Align the currently selected elements. Components can be aligned with each other either by center point, or if a pad of each component is selected, the components will be placed in such a way that the selected pads are aligned. The alignment is currently only based on the center points, and it's not possible to align edges. The alignment axis selection is based on the axis that produces the largest separation of center points.
The base form of the command aligns everything on a common axis. If the first
or last
argument is given, the alignment axis will coincide with the first or
last selected element, which means that element will stay in place. The frame
argument means the axis will be chosen to align with that elements frame of
reference, which can be useful for elements that are not axis aligned.
The last two forms of the command picks an arbitrary axis using two of the
selected elements. align first last
aligns elements on the axis determined by
the first and last selected element, and align first second
will define the
axis as the line connecting the first and second selected elements, or the
equivalent align last second
which picks the axis between the last and
second-to-last element.
Note that the way we handle component placement means that we currently cannot align vias and control points with their associated component's pads.
For an interactive way to align elements, see the Edit Bar.