create_3dcomponent#

BowTieSlot.create_3dcomponent(component_file=None, component_name=None, replace=False)#

Create a 3D component of the antenna.

Parameters:
component_filestr, optional

Full path to the A3DCOMP file. The default is the ansys.aedt.core folder.

component_namestr, optional

Name of the component. The default is the antenna name.

replacebool, optional

Whether to eplace the antenna with a 3D component. The default is False.

Returns:
str

Path of the 3D component file or ansys.aedt.core.modeler.components_3d.UserDefinedComponent.

Examples

>>> from ansys.aedt.core import Hfss
>>> from ansys.aedt.toolkits.antenna.backend.antenna_models.horn import Conical
>>> hfss = Hfss()
>>> horn = hfss.add_from_toolkit(Conical, draw=True)
>>> horn = horn.create_3dcomponent()