Text variables not substituted in python scripts

Admittedly I am not much of a Python guy, so:

Running the value grouped BOM I noticed that text variables are not substituted.
I have parts whose values are text variables.
I this a known thing?

Kind of related issue:

kicad_pcb file contains resolved variable inside it, but I cannot access it (or don’t know how) from python.

I guess there are more python related issues, like yours.

1 Like

Thanks for the heads-up. We’ll see…

There exists some python function(s) to do the substitution, but I don’t remember what it is exactly.

Yeah, something like ExpandTextVars. Not sure I really feel like working through that.

In pcbnew python api you can get expanded text using GetShownText()
It’s separate from the eeschema bom issue that straubm is experiencing.

1 Like

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