I’d like to modify bom_csv_grouped_by_value_with_fp.py but I have never sow any python code before.
The last command in that file is:
out.writerow([refs, len(group), c.getValue(), c.getPartName(), c.getFootprint(),
c.getFootpint() inserts in output row the tekst “LibName:Footprint”, but I would like to get only “Footprint”.
I suppose I should modify the source to something like this:
footpr=c.getFootprint() - I don’t know if variable have to be defined in any way before
some actions to remove anything up to : from footpr
out.writerow([refs, len(group), c.getValue(), c.getPartName(), footpr,…
How to do it? I believe for some of you it is as simple as 2+2.