- Boost your layout productivity with quick alignments of layout elements, such as
- cell instances
- shapes (e.g. polygons, boxes, paths)
- Choose constraints by selecting features, such as
- edges (the entire edge)
- points (edge end points or the edge middle point)
This add-on can be installed through KLayout package manager, see installation instructions here
After installation, this tool can be accessed through Toolbar→Align
- You can select instances and shapes (you want to align), before invoking the tool
- The selection will be displayed in the dock setup panel
- If no pre-selection is made, the shape or instance of the source reference point will be aligned
- Either points or edges can be chosen as the alignment reference
- Select the midpoint or one of the endpoints of an edge of a shape or instance bounding box
- The search box is shown as a dashed rectangle
- points must be within the search box
- edges just intersect the search box
- Left-click to apply the selection
- Ensure there is no pre-selection
- Click the Align tool or press
A
to enter the align mode (if you've configured the key binding as explained here
- edges must be parallel
- if the edge is too short and a point is always marked for selection, zoom in
- in edge-to-edge mode, alignment is performed only along the perpendicular axis, so
- for horizontal edges: in the Y direction
- for vertical edges: in the X direction
- In the main menu, open the Preferences/Settings in KLayout
- Navigate to Application→Customize Menu
- Search for 'Align'
- Assign the shortcut
A
to the pathedit_menu.mode_menu.Align
- From the main menu, click Tools→Manage Packages to open the package manager
- Locate the
AlignToolPlugin
, double-click it to select for installation, then click Apply
- Review and close the package installation report
- Confirm macro execution