Inconsistency resolving Text Variables
Description
I'm using text variable substitution to automatically generate the path for my exports (such as ${PROJECT}-${REVISION}-production/schematic
).
While this works correctly when plotting the schematic to PDF, it only partially works when exporting gerbers, using the same output string.
See attached pictures for clarification.
When used on a text string inside pcbnew, it works correctly...
These are the test variables that are set (I was experimenting with the Revision field, which seems to be the only one not working correctly).
When using this to plot my files...
Steps to reproduce
- Define several test variables, one of them named REVISION with contents "REV-B"
- Set you gerber output directory based on these text variables (including REVISION)
- Plot
- See the name of the created folder
KiCad Version
Application: KiCad Schematic Editor
Version: (6.0.2-0), release build
Libraries:
wxWidgets 3.1.5
libcurl/7.77.0 SecureTransport (LibreSSL/2.8.3) zlib/1.2.11 nghttp2/1.42.0
Platform: macOS Version 12.2.1 (Build 21D62), 64 bit, Little endian, wxMac
Build Info:
Date: Feb 11 2022 19:53:03
wxWidgets: 3.1.5 (wchar_t,wx containers)
Boost: 1.76.0
OCC: 7.6.0
Curl: 7.64.1
ngspice: 35
Compiler: Clang 12.0.0 with C++ ABI 1002
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON