Altium Designer’s rule system is usually introduced as a way to enforce clearances and widths, then left at that. It is actually far more capable: the placement and room rules lets you constrain where components may sit, how they may be oriented, how close they may be to each other and to the board edge, and which layer they are allowed to occupy. Used properly, the rule tool turns placement intent into something the editor enforces, rather than something you have to remember.
This walkthrough covers the rules that actually matter for component placement and board borders, how to scope them so they apply to the right objects, and how to get useful feedback when a placement violates them.
Where the rules live and how scoping works
Everything is under Design → Rules. Each rule has two halves: a constraint (what it enforces) and a scope (which objects it applies to). Most of the frustration people have with the rule tool comes from getting the scope wrong, not the constraint.
Scoping is done with queries. The two forms worth learning:
- Query helper — builds a query from dropdowns. Good enough for simple cases like “all components” or “components of a specific footprint”.
- Query language — much more precise. Examples that are genuinely useful for placement:
IsComponent— every component on the board.(ObjectKind = 'Component') And (HasFootprint('SOIC-8'))— one package type only.InComponentClass('PowerParts')— everything in a component class you defined.InRoom('RF_FrontEnd')— everything inside a named room.OnLayer('TopLayer')— objects on a specific layer.
Rule priority matters: when two rules could apply to the same object, the higher-priority one wins. Altium sorts by scope specificity, but you should set priorities deliberately for placement rules, because a broad “all components” rule and a specific “connectors only” rule will otherwise conflict unpredictably.
Defining the board border
Before placement rules mean anything, the board outline has to be defined properly.
Board shape. Use Design → Board Shape → Define Board Shape from selected objects after drawing a closed outline on a mechanical layer, or Define Board Cutout for internal slots and cutouts. The board shape is what the 3D view, the manufacturing outputs and the placement rules all reference — a board outline left as loose primitives on a mechanical layer will not constrain anything.
Keep-out layer. The keep-out layer defines areas where copper, components, or both are prohibited. It is the practical mechanism for reserving space for a heatsink, a connector shell, a mounting boss, or an enclosure wall. Use Place → Keepout with the specific keepout type (track, arc, fill, region) rather than drawing ordinary tracks on the keep-out layer, because only real keepout objects are interpreted correctly.
Note the difference: the board shape defines where the board material ends; keep-outs define where things may not go within it. Many mechanical constraints need both.
Rules that control component placement
Component clearance
Under Placement → Component Clearance. This sets the minimum gap between component bounding boxes, and it can be checked horizontally, vertically, or in both. Two settings are worth understanding:
- Check Mode: Quick Check uses the component footprint’s bounding box; Multi Layer Check works properly when components are placed on both sides of the board, which is the usual case.
- Gap: set per-axis if needed. A tight horizontal gap with a generous vertical gap is typical when tall parts have to sit near short ones on the opposite side.
Scope this by class to make it meaningful — for example, a larger clearance for anything in a high-voltage class, and the default for everything else.
Component orientation
Under Placement → Component Orientation. Constrains components to allowed rotations (0°, 90°, 180°, 270°). Its real use is assembly: restricting polarised or asymmetric parts to orientations the pick-and-place machine and the AOI program expect, and preventing a rotated part that passes DRC but cannot be assembled or inspected correctly.
Permitted layers
Under Placement → Permitted Layers. Restricts which side of the board a component may occupy. Essential for anything that has to be on a specific side — connectors that must face the panel, parts that must be on the heatsink side, or components that cannot survive the second reflow pass on the bottom side.
Room definition
Under Placement → Room Definition. A room is a rectangular or polygonal region, and the rule binds the specified components to it. Rooms are the single most useful placement tool for anything modular: define a room for the power stage, one for the analogue front end, one for the connector area, and the editor will flag any component that is dragged out of its assigned region.
Rooms also carry a confinement setting — components can be required to sit entirely inside a room, or merely to have their origin inside it. Full confinement is stricter and usually what you want for noise-sensitive or thermally sensitive groups.
Height constraint
Under Placement → Height. Sets a maximum component height, globally or by scope. This is the rule that catches the tall electrolytic capacitor placed under a shield can, or the inductor that will not fit under the enclosure. It requires height values in the component footprints, so it only works if the library is properly built.
A worked placement setup
A practical sequence for a board with a power stage, an analogue section and a connector area:
- Define the board shape from the mechanical outline, and place keep-outs for mounting holes, the connector shell overhang and the heatsink footprint.
- Create component classes:
PowerParts,AnalogParts,Connectors. Classes are defined in the schematic (Design → Classes or via the schematic’s component properties), which keeps them stable across updates. - Draw a room for each section, sized from the mechanical constraints.
- Add a Room Definition rule per class, scoped to
InComponentClass('PowerParts')and so on, with full confinement. - Add a Component Clearance rule for the power class with a larger gap (these parts run hot and usually need copper around them), and a tighter default rule for the rest.
- Add a Permitted Layers rule for
InComponentClass('Connectors')restricting to the top layer. - Add a Height rule scoped to any component under a shield or enclosure wall, using the measured clearance.
- Set rule priorities so the class-specific rules outrank the defaults.
- Run Design → Board Insight or the DRC and place with live feedback on.
The payoff is that placement becomes checkable. Instead of reviewing a finished layout against a mental checklist, violations are reported as you place parts.
Getting useful feedback
- Online DRC. Enabled in Preferences → PCB Editor → General; violations are highlighted as you work. Keep it on for placement rules — it is the whole point.
- Batch DRC. Run before any release. Placement violations should be zero, not “reviewed and accepted”.
- PCB Rules and Violations panel. Gives a navigable list of violations with the offending objects, which is far more efficient than reading the DRC report.
- 3D view. The only way to catch height and interference problems that the rules cannot express, such as a connector shell clashing with an adjacent tall part.
Mistakes worth avoiding
Scoping everything to “All”. A single global clearance and no class-based rules gives you almost no enforcement where it matters.
Leaving priorities on automatic. When two placement rules overlap, unspecified priority produces results that look arbitrary. Set them.
Trusting rooms without confinement. A room whose components are only required to have their origin inside it can still produce a layout that sprawls across the board.
Ignoring heights in the library. The height rule silently does nothing if footprints have no height attribute. Fixing the library is a one-time cost that makes mechanical checking automatic afterwards.
Treating placement rules as a substitute for layout judgement. They enforce what you specified, not what is electrically sensible. A room for the power stage does not guarantee the switching loop is small — that still comes from deliberate layout optimisation.
Frequently asked questions
Can placement rules be reused across projects?
Yes. Export the rule set from the Rules editor and import it into another project, or store it in a template. This is worth doing for any house style that has to be consistent.
Do rooms survive schematic updates?
Rooms tied to a component class or a schematic sheet generally survive; rooms created from a one-off selection may not. Building rooms on classes is the more robust approach.
Why is my height rule not flagging anything?
Almost always because the footprints have no height defined. Check the component’s 3D body or height parameter in the library.
Should keep-outs be on the keep-out layer or a mechanical layer?
Use real keep-out objects for anything the rules must enforce. Mechanical layers are fine for documentation and for defining the board shape outline, but they do not constrain placement.
When the rules are not enough
Rules enforce intent; they do not create it. If the board being laid out is a reconstruction — a design recovered from a physical sample — the placement constraints come from the original: what had to sit where for thermal, EMI or mechanical reasons, and what the enclosure permits. That information has to be recovered from the board itself, which is the layout reconstruction side of a reverse engineering project. Our PCB cloning and reverse engineering services cover that route, and if you are weighing whether to rebuild a board at all, the cost and schedule page is the place to start. Specific questions are welcome via the contact page.
Need a quote for this PCB?
Send us your Gerber / schematic / samples. We reply with feasibility, lead time and a quote within 1 business day.
Get a QuoteOr message us on WhatsApp +86 189 3864 0277.






