insert_layout_component#
- Modeler3D.insert_layout_component(input_file, coordinate_system='Global', name=None, parameter_mapping=False, layout_coordinate_systems=None, reference_coordinate_system='Global')[source]#
Insert a new layout component.
- Parameters:
- input_file
str
Path of the component file. Either
".aedb"
and".aedbcomp"
are allowed.- coordinate_system
str
,optional
Target coordinate system. The default is
"Global"
.- name
str
,optional
3D component name. The default is
None
.- parameter_mappingbool,
optional
Whether to map the layout parameters in the target HFSS design. The default is
False
.- layout_coordinate_systems
list
,optional
Coordinate system to import. The default is all available coordinate systems.
- reference_coordinate_system
str
,optional
Coordinate system to use as reference. The default is
"Global"
.
- input_file
- Returns:
ansys.aedt.core.modeler.components_3d.UserDefinedComponent
User defined component object.
References
>>> oEditor.InsertNativeComponent
Examples
>>> from ansys.aedt.core import Hfss >>> app = Hfss() >>> layout_component = "path/to/layout_component/component.aedbcomp" >>> comp = app.modeler.insert_layout_component(layout_component)