~cypheon/kicad2spice

ab8dc55b9ba27393cde23d0369202c056d688ea2 — Johann Rudloff 4 years ago 7db0811
Ignore components during netlist export when field "spice_netlist_enabled" is set to "N".
1 files changed, 3 insertions(+), 1 deletions(-)

M lib/export_pspice.ml
M lib/export_pspice.ml => lib/export_pspice.ml +3 -1
@@ 3,7 3,9 @@ open List
open Connectiongraph
open Schematic

let comp_ignored comp = comp.Comp.ref.[0] = '#'
let comp_ignored comp =
  comp.Comp.ref.[0] = '#'
  || Fields.get comp.Comp.fields Fields.Keys.spice_netlist_enabled "Y" <> "Y"

let write_comp outch pin_cache comp =
  let pin_nets = map (fun pin ->