import_idf#
- Icepak.import_idf(board_path, library_path=None, control_path=None, filter_cap=False, filter_ind=False, filter_res=False, filter_height_under=None, filter_height_exclude_2d=False, power_under=None, create_filtered_as_non_model=False, high_surface_thick='0.07mm', low_surface_thick='0.07mm', internal_thick='0.07mm', internal_layer_number=2, high_surface_coverage=30, low_surface_coverage=30, internal_layer_coverage=30, trace_material='Cu-Pure', substrate_material='FR-4', create_board=True, model_board_as_rect=False, model_device_as_rect=True, cutoff_height='5mm', component_lib='')#
Import an IDF file into an Icepak design.
- Parameters:
- board_path
str
Full path to the EMN/BDF file.
- library_path
str
Full path to the EMP/LDF file. The default is
None
, in which case a search for an EMP/LDF file with the same name as the EMN/BDF file is performed in the folder with the EMN/BDF file.- control_path
str
Full path to the XML file. The default is
None
, in which case a search for an XML file with the same name as the EMN/BDF file is performed in the folder with the EMN/BDF file.- filter_capbool,
optional
Whether to filter capacitors from the IDF file. The default is
False
.- filter_indbool,
optional
Whether to filter inductors from the IDF file. The default is
False
.- filter_resbool,
optional
Whether to filter resistors from the IDF file. The default is
False
.- filter_height_under
float
orstr
,optional
Filter components under a given height. The default is
None
, in which case no components are filtered based on height.- filter_height_exclude_2dbool,
optional
Whether to filter 2D components from the IDF file. The default is
False
.- power_under
float
orstr
,optional
Filter components with power under a given mW. The default is
None
, in which case no components are filtered based on power.- create_filtered_as_non_modelbool,
optional
Whether to set imported filtered components as
Non-Model
. The default isFalse
.- high_surface_thick
float
orstr
optional
High surface thickness. The default is
"0.07mm"
.- low_surface_thick
float
orstr
,optional
Low surface thickness. The default is
"0.07mm"
.- internal_thick
float
orstr
,optional
Internal layer thickness. The default is
"0.07mm"
.- internal_layer_number
int
,optional
Number of internal layers. The default is
2
.- high_surface_coverage
float
,optional
High surface material coverage. The default is
30
.- low_surface_coverage
float
,optional
Low surface material coverage. The default is
30
.- internal_layer_coverage
float
,optional
Internal layer material coverage. The default is
30
.- trace_material
str
,optional
Trace material. The default is
"Cu-Pure"
.- substrate_material
str
,optional
Substrate material. The default is
"FR-4"
.- create_boardbool,
optional
Whether to create the board. The default is
True
.- model_board_as_rectbool,
optional
Whether to create the board as a rectangle. The default is
False
.- model_device_as_rectbool,
optional
Whether to create the components as rectangles. The default is
True
.- cutoff_height
str
orfloat
,optional
Cutoff height. The default is
None
.- component_lib
str
,optional
Full path to the component library.
- board_path
- Returns:
- bool
True
when successful,False
when failed.
References
>>> oDesign.ImportIDF