As per this page: New string replacement options for kicad assets
the string replacement SHEETNAME returns the name of the active sheet, which seems to work well in my custom worksheet, except for page 1 (Root) of the schematic where this field is empty.
I am expecting this to read Root just like it appears in the schematic hierarchy navigator.
I believe this is a bug, easy-to-fix however
Bonus:
If the same worksheet is applied to the pcb editor then SHEETNAME would not make sense as there currently can be only one layout per project (I believe we already have that discussion elsewhere) so what string should be returned here?
What’s your KiCad version and platform? Always state those when asking about a possible bug. It’s possible you’re not up to date with the latest version and it’s already fixed.
Ohh yes, the illusive issue database… I know I have browsed it intensively 1-2 years back but nowadays I can’t seem to google it. If only there was an easy to find project index…
I fixed it in master, not sure how soon it will make it to stable, maybe 7.0.10. It will display “Root” until we add the ability to change the root sheet name.