[iBoM] Changed to use will_filter_pcb_components
This commit is contained in:
parent
2282334986
commit
e82049cdea
|
|
@ -175,7 +175,7 @@ class IBoMOptions(VariantOptions):
|
||||||
ori_extra_data_file = self.extra_data_file
|
ori_extra_data_file = self.extra_data_file
|
||||||
net_dir = None
|
net_dir = None
|
||||||
pcb_name = GS.pcb_file
|
pcb_name = GS.pcb_file
|
||||||
if self._comps:
|
if self.will_filter_pcb_components():
|
||||||
# Write a custom netlist to a temporal dir
|
# Write a custom netlist to a temporal dir
|
||||||
net_dir = mkdtemp(prefix='tmp-kibot-ibom-')
|
net_dir = mkdtemp(prefix='tmp-kibot-ibom-')
|
||||||
netlist = os.path.join(net_dir, GS.pcb_basename+'.xml')
|
netlist = os.path.join(net_dir, GS.pcb_basename+'.xml')
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,12 @@
|
||||||
|
# Example KiBot config file
|
||||||
|
kibot:
|
||||||
|
version: 1
|
||||||
|
|
||||||
|
import:
|
||||||
|
- file: battery_pack_sub_pcbs.kibot.yaml
|
||||||
|
|
||||||
|
outputs:
|
||||||
|
- name: 'interactive_bom'
|
||||||
|
comment: "Interactive Bill of Materials (HTML)"
|
||||||
|
type: ibom
|
||||||
|
dir: BoM
|
||||||
Loading…
Reference in New Issue