KB: Layer-specific design rules with through-hole pads and vias

Solution Details

Vias and trough-hole pads are Multi-Layer objects and, therefore, when you define a rule with, e.g., the expression OnLayer('Top Layer') in the scope, the Multi-Layer pads and vias are not returned with this query as their Layer property is not Top Layer. However, a through-hole pad or via exists on the Top Layer and can, therefore, be returned as an object by the check ExistsOnLayer('Top Layer').

Please see the documentation for the ExistsOnLayer and OnLayer membership checks.

The following example shows a clearance rule for NetA and NetB for the Top Layer with and without the ExistsOnLayer check:

2025-02-12_23-38-46.png

 

2025-02-12_23-37-02.png

 

 

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.

Source URL: https://www.altium.com/documentation/knowledge-base/altium-designer/layer-specific-design-rules-with-through-hole-pads-and-vias