Filename in the layout

I ran into issues with text variables with Kicad before. Please see Text Variables in KiCad.

The drawing frame / border around the schematic or PCB even accepts text variables in a “%F” notation Drawing Sheet Editor documentation.

You can define your own text variables in Schematic / PCB configuration. These are stored in the *.kicad_pro file and expand both in schematics and PCB. Maybe that helps.

1 Like