insert_layout_component#

Modeler3D.insert_layout_component(comp_file, coordinate_system='Global', name=None, parameter_mapping=False, layout_coordinate_systems=[])[source]#

Insert a new layout component.

Parameters:
comp_filestr

Path of the component file. Either ".aedb" and ".aedbcomp" are allowed.

coordinate_systemstr, optional

Target coordinate system. The default is "Global".

namestr, optional

3D component name. The default is None.

parameter_mappingbool, optional

Map the layout parameters in the target HFSS design. The default is False.

layout_coordinate_systemslist, optional

Coordinate system to import. The default is all available coordinate systems.

Returns:
pyaedt.modeler.components_3d.UserDefinedComponent

User defined component object.

References

>>> oEditor.InsertNativeComponent

Examples

>>> from pyaedt import Hfss
>>> app = Hfss()
>>> layout_component = "path/to/layout_component/component.aedbcomp"
>>> comp = app.modeler.insert_layout_component(layout_component)