[PYTHON] Using project text variables in pcbnew (V6)

Currently I set the revision of my project using the following method;

Schematic Setup > Project > Text Variables > PROJECT_REV

Then on my title pages using ${PROJECT_REV} passes to all pages.

How do I follow this through using pcbnew to get the revision?

I have tried;
GetRevision() from GetTitleBlock() and GetProperties() from GetBoard()
but this returns the variable names, not it’s value
${PROJECT_REV}

What am I missing to obtain the value?

Thanks.

I solved my own problem for a change;

Just found ExpandTextVars which does the trick.

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.