Which type is the component reference silkscreen text for custom design rules?

I have this situation

kicad_PTXk01wDEB

and this custom DRC rule

#make sure silkscreen text does not overlap vias
(rule silk2via
	(severity warning)
	(constraint silk_clearance(min 0.15mm))
	(condition "(A.Type=='Via')&&((B.Type=='Graphic')||(B.Type=='Text'))&&(!A.insideArea('silk_ok'))")
)

Why is the overlapping graphics segment (line on silkscreen) flagged but the reference is NOT. Isn’t the reference type ‘Text’?
Or is there a higher priority rule allowing the situation that overrules my custom rule?

Try Footprint Text? I have not tried it out, but the docs say the text options are Footprint Text and Board Text, with no plain Text

No luck, but thanks anyways.
While I didn’t RTFM, I checked with the autocomplete, which still has ‘Text’(7.99).
The example in the syntax help

# prevent silk over tented vias
(rule silk_over_via
   (constraint silk_clearance (min 0.2mm))
   (condition "A.Type == '*Text' && B.Type == 'Via'"))

also does not work.

I’ll wait a little and then head over to the bug tracker.

Or even better: @JeffYoung can you help?

It may help a bit if you update the title to reflect it has to do with custom design rules.

It’s probably “Field”. (This might have changed in 7.99.)

“Field” works. Thanks. A bit counterintuitive, but anyways…

can you log a bug so we remember to fix the autocomplete/documentation?

Will do.
I think a generic issue to update the ‘Type’ values is sufficient. I did not test all the others. ‘Board Text’ seems to have changed to ‘Text’ and there may be more.

1 Like
2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.