Custom DRC: Clearance between signal and zone does not work

What i want: I want that a filled copper polygon has a greater clearance to 2 signals (CAN_HIGH and CAN_LOW) than to other signals.

What i tried is adding this second rule:

(version 1)
(rule "CAN Abstand zu anderen Signalen"
  (constraint clearance (min 2mm)) 
  (condition "A.NetClass == 'CAN' && B.NetClass != 'CAN'")
)

(rule "CAN Abstand CAN_HIGH zu GND_CAN Zone"
  (constraint clearance  (min 1mm)) 
  (condition "A.NetName == 'CAN_HIGH' && B.Type == 'Zone'")
)

What i got:
The zone is still filled to 400um near the CAN_HIGH signal (and CAN_LOW, but i will add this rule when CAN_HIGH is working).

Changed the rule to this and now it works:

(rule "CAN_HIGH und CAN_LOW Abstand zur GND_CAN-Fläche"
  (constraint clearance (min 0.6mm)) 
  (condition "A.NetName== '/CAN/CAN_HIGH' || A.NetName== '/CAN/CAN_LOW' && B.Type == 'Zone'")
)

Replaced CAN_HIGH with /CAN/CAN_HIGH.

2 Likes