PCB Layout REVISION, can I get it?

Hi,

I know I can get the Schematic revision using $(REVISION) but can I get the PCB revision in a similar way ?

(similar question here: How to access Page Settings → Revision in jobset?)

${REVISION} should work in both the schematic editor and the PCB editor.

But…

${REVISION} anywhere resolves to the sheet title block’s Revision field for the current sheet. It’s not project-wide or even schematic/pcb-wide, it’s different per-sheet.

I’m not sure where you’re trying to use the variable, but if it’s not working in a PCB context, have you entered a revision for the PCB sheet title block (PCB editor File → Page Settings)?

I’m using it in a Schematic symbol and passing it to a Footprint . … that gives me the Revision from the Schematic sheet when I actually want the revision from the PCB Layout sheet.

I’ve worked around this for now using a custom text variable.

Ah. I believe when a field gets transferred from schematic symbol → footprint, it passes any text variables as the resolved value, so you’ll get the revision from the footprint’s symbol’s schematic sheet.

In general if you care about a schematic-wide revision and a separate pcb-wide revision (I do!) I’d do what you’ve done and make separate ${SCH_REV} and ${PCB_REV} or whatever project text variables. You can set the sheet title block revision fields to those variables as appropriate.

1 Like

Yup I guessed this was the case, just needed to do a quick fix for now, will sort this project properly in due course if another revision is needed.