KB: Troubleshoot Electrical Clearance Rule Incorrect Definitions Error When Using IsPolygon or IsPoly
Updated: November 16, 2026
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
- Open the Electrical Clearance rule that is generating the validation error.
- Review the custom query used in the rule definition.
- Locate any instances of IsPolygon or IsPoly.
- Replace the unsupported query with InPolygon (alias InPoly) or InNamedPolygon, as appropriate for the design requirement.
- Validate the rule definition again and confirm that the error no longer appears.
