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_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

Whether to 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.

reference_coordinate_systemstr, optional

Coordinate system to use as reference. The default is "Global".

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)