Skip to content

Vizualising variant BOMs

Jean-Noël Avila requested to merge github/fork/jnavila/variant into master

Variant BOM can be visualized in schematics with the two scripts introduced in this PR.

A first script in schlib create_nopop.py, can be applied to the -cache.lib library to create duplicated parts with a big cross on them. These new parts'names are appended with "_NOPOP".

Then, you can apply the second script on the sch files. This script will change the part's symbol to nopop if a given field matches a given value, eg "NP". If you have defined some fields named according to the variant BOM and filled with the given "NP" value when the part should not be populated in this variant, the new schematic file will reflect the variant with crossed parts when not populated.

Be careful that these scripts are "destructive". You should have backed up the project or commited the latest version in you favorite version control system.

Edited by Joel Guittet

Merge request reports