update_rlc_from_bom#
- Components.update_rlc_from_bom(bom_file, delimiter=';', valuefield='Func des', comptype='Prod name', refdes='Pos / Place')[source]#
Update the EDC core component values (RLCs) with values coming from a BOM file.
- Parameters:
- bom_file
str
Full path to the BOM file, which is a delimited text file. Header values needed inside the BOM reader must be explicitly set if different from the defaults.
- delimiter
str
,optional
Value to use for the delimiter. The default is
";"
.- valuefield
str
,optional
Field header containing the value of the component. The default is
"Func des"
. The value for this parameter must being with the value of the component followed by a space and then the rest of the value. For example,"22pF"
.- comptype
str
,optional
Field header containing the type of component. The default is
"Prod name"
. For example, you might enter"Inductor"
.- refdes
str
,optional
Field header containing the reference designator of the component. The default is
"Pos / Place"
. For example, you might enter"C100"
.
- bom_file
- Returns:
- bool
True
if the file contains the header and it is correctly parsed.True
is returned even if no values are assigned.