Custom Rule is not applied to DRC

Hi,
I have DRC errors for courtyard overlapping of fiducials with other footprints.
image

I set the “Fabrication_Property” of these fiducial pads to “Fiducial, global to board”.
Also I took into account the negative clearance value:

This is my custom rule:

(version 1)
(rule allow_fiducial_courtyard_overlap
  (constraint courtyard_clearance (min -100mm))
  (condition "A.Fabrication_Property=='Fiducial, global to board")
)

What could be the reason not to work?

Regards,
Hannes

According to the manual, it should be . . .

"A.Fabrication_Property == ‘Fiducial, global to board’ "

not

“A.Fabrication_Property=='Fiducial, global to board”

. . . I think.

No, because the syntax check in the same window said “no errors found”.

And if you accidentally had faulty custom rules, this appears in the Layout window:
image

I’ve never used Custom DRC rules . . . it’s on my list of things to learn :wink:

I would try it, the quotes just look wrong to my eye in any case . . .

From the manual . . .

Don’t use thermal reliefs on heatsink pads

(rule heat_sink_pad
(constraint zone_connection solid)
(condition “A.Fabrication_Property == ‘Heatsink pad’”))

Thanks for the concern, but actually it both gives no errors weirdly. With just the preceding ’ and with encapsulating ’ ’ :sweat_smile:
And both result in the same DRC error.