Fix KiCAD netlist export if more than one projects are managed
This commit is contained in:
parent
f3bb3b4408
commit
b92a021734
1 changed files with 4 additions and 2 deletions
|
|
@ -323,7 +323,8 @@ class NetManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const nets = await this.db.getNets();
|
const allNets = await this.db.getNets();
|
||||||
|
const nets = allNets.filter(n => n.projectId === currentBomId);
|
||||||
const components = (typeof bomData !== 'undefined') ? bomData : [];
|
const components = (typeof bomData !== 'undefined') ? bomData : [];
|
||||||
|
|
||||||
// --- CONFIGURATION: Component Type Mapping ---
|
// --- CONFIGURATION: Component Type Mapping ---
|
||||||
|
|
@ -408,7 +409,8 @@ class NetManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const nets = await this.db.getNets();
|
const allNets = await this.db.getNets();
|
||||||
|
const nets = allNets.filter(n => n.projectId === currentBomId);
|
||||||
const components = (typeof bomData !== 'undefined') ? bomData :[];
|
const components = (typeof bomData !== 'undefined') ? bomData :[];
|
||||||
|
|
||||||
let out = "* SPICE Netlist generated by PCB ReTrace\n";
|
let out = "* SPICE Netlist generated by PCB ReTrace\n";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue