create_component#

EmitSchematic.create_component(component_type: str, name: str = None, library: str = None) EmitNode#

Create a component.

Parameters:
component_typestr

Type of the component to create.

namestr, optional

Name of the component to create. AEDT defaults used if not provided.

librarystr, optional

Name of the component library. Defaults to an empty string if not provided.

Returns:
EmitNode

The EmitNode of the created component.

Raises:
ValueError

If the component type is empty or no matching component is found.

RuntimeError

If the component creation fails.

Examples

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