theacodes / kicanvas

The KiCAD web viewer
https://kicanvas.org
Other
644 stars 33 forks source link

`${REFERENCE}` is not evaluated in footprint text/silkscreen elements #89

Open kimballa opened 5 months ago

kimballa commented 5 months ago

See kicanvas view at https://kicanvas.org/?github=https%3A%2F%2Fgithub.com%2Fkimballa%2Fvoltage-ref-cal%2Fblob%2Fmain%2Fvoltage%2520ref%2520calibration%2520tool.kicad_pcb

KiCanvas screenshot: image

KiCAD 8.0.2 screenshot: image

Test point footprints display their refdes on both the F.silks and B.silks layers; one of these is the canonical refdes component of the footprint; the other is a text property whose text is ${REFERENCE} and evaluates to the former. (By making this a property, and not a literal text object, it can be dragged around on the pcb rather than bolted in place relative to other footprint elements.)

I expect ${REFERENCE} to be substituted with TP12 or similar; instead it is shown verbatim in the viewer.

(Looking more closely, it appears that all references in the footprints -- e.g. the SMD resistors -- are replaced with the string ${REFERENCE}, not just "extra" reference labels.)