How to access Page Settings → Revision in jobset?

How to access the revision in a jobset? I have created an “Export Gerbers” job and the Output path is: ${KIPRJMOD}/${PROJECTNAME}-${REVISION}.zip However, this creates the file foobar-${REVISION}.zip instead of foobar-rev42.zip.

How can I access the board (and schematic) revision?

Version: 9.0.0+1, release build

Since there has been no reply, I assume that’s currently not possible and so I created a feature request:
Make Revision available as variable in jobsets

You can’t access sheet title block fields in jobset output names. The PCB and the schematic can have different ${REVISION}s, for instance. Which one should be used?

One thing you could do is create a project text variable called ${REV} or whatever you’d like, set it to your revision, and then use that variable in both the title block revision and your jobset destination filename.

That depends on how they’re exposed. In the feature request I suggested ${PCBREVISION} and ${SCHEMATICREVISION} to be able to access either one.

Another way would be to use some logic, e.g. when generating gerbers, drill files or 3D renders, use the PCB revision. When plotting a schematic to PDF use the schematic version, for instance.

I’m not arguing it would be bad to add those, necessarily, and it wouldn’t be me making that decision anyway, but… KiCad already gives you the tools to do that yourself :slight_smile: