import_bom#
- Components.import_bom(bom_file, delimiter=',', refdes_col=0, part_name_col=1, comp_type_col=2, value_col=3)[source]#
Load external BOM file.
- Parameters:
- bom_file
str
Full path to the BOM file, which is a delimited text file.
- delimiter
str
,optional
Value to use for the delimiter. The default is
","
.- refdes_col
int
,optional
Column index of reference designator. The default is
"0"
.- part_name_col
int
,optional
Column index of part name. The default is
"1"
. Set toNone
if the column does not exist.- comp_type_col
int
,optional
Column index of component type. The default is
"2"
.- value_col
int
,optional
Column index of value. The default is
"3"
. Set toNone
if the column does not exist.
- bom_file
- Returns: