KB: Troubleshoot Electrical Clearance Rule Incorrect Definitions Error When Using IsPolygon or IsPoly

Altium Designer Altium Designer
When creating an Electrical Clearance design rule to define clearance between a Polygon Pour and other signal layer copper objects, using the custom query IsPolygon (alias IsPoly) can generate a "Some rules have incorrect definitions" error. This occurs because IsPolygon is not a valid query for this rule definition. To resolve the issue, use the attribute check InPolygon (alias InPoly) or the membership check InNamedPolygon when defining the applicable objects in the Electrical Clearance rule.

Solution Details

Error Appears During Rule Definition

When creating an Electrical Clearance design rule that uses the custom query IsPolygon (alias IsPoly), the rule validation displays the message:

Some rules have incorrect definitions.

This affects rules intended to define clearance between a Polygon Pour and other signal layer copper objects.

Object Type Query Is Not Valid

The error occurs because the custom query uses IsPolygon or IsPoly instead of a supported polygon-related query for the Electrical Clearance rule definition.

Use Supported Polygon Query Functions

  • Use InPolygon (alias InPoly) to identify objects that belong to a polygon.
  • Use InNamedPolygon when the rule should target objects associated with a specific named polygon.

Replace Unsupported Query Keywords

  1. Open the Electrical Clearance rule that is generating the validation error.
  2. Review the custom query used in the rule definition.
  3. Locate any instances of IsPolygon or IsPoly.
  4. Replace the unsupported query with InPolygon (alias InPoly) or InNamedPolygon, as appropriate for the design requirement.
  5. Validate the rule definition again and confirm that the error no longer appears.

Altium PCB Rules and Constraints Editor showing a Clearance rule with a confirmation dialog warning that some rules have incorrect definitions and asking whether to correct them.

References

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