Hey folks. I have a dilemma. I really like using the “Config” field property in Eeschema to specify a board variant. This makes excluding certain components from KiBOM’s BOM nice and easy, and overall works well. The issue I have is how to make those excluded components “virtual” in Pcbnew, so they aren’t rendered. Currently this is a manual process.
I’m thinking I could script this. There are two things that I need help with:
- How do I access a component’s fabrication attributes via Python? I can’t seem to find useful object in the pcbnew.MODULE class reference.
- Is there a way to access Eeschema field properties from Pcbnew without manually parsing each .sch file? Looking specifically for the “Config” field value that I specify.
I’d appreciate it.