get_antenna#
- ToolkitBackend.get_antenna(antenna, synth_only=False)[source]#
Synthesize and create an antenna in HFSS.
- Parameters:
- antenna:class:
Type of antenna to create.
- synth_onlybool,
optional
Whether to only synthesize the anttena. The default is
False
.
- Returns:
- bool
True
when successful,False
when failed.
Examples
>>> from ansys.aedt.toolkits.antenna.backend.api import ToolkitBackend >>> import time >>> toolkit = ToolkitBackend() >>> msg1 = toolkit_api.launch_thread(toolkit.launch_aedt) >>> idle = toolkit_api.wait_to_be_idle() >>> toolkit.get_antenna("BowTie")