delete_component#

EmitSchematic.delete_component(name: str)#

Delete a component from the schematic.

Parameters:
namestr

Name of the component.

Raises:
RuntimeError

If the deletion fails.

Examples

>>> from ansys.aedt.core import Emit
>>> app = Emit()
>>> node = app.schematic.create_component("Antenna")
>>> app.schematic.delete_component(node.name)