create_component#

NexximComponents.create_component(name=None, component_library='Resistors', component_name='RES_', location=None, angle=0, use_instance_id_netlist=False, global_netlist_list=None)[source]#

Create a component from a library.

Parameters:
namestr, optional

Name of the instance. The default is None.

component_librarystr, optional

Name of the component library. The default is "Resistors".

component_namestr, optional

Name of component in the library. The default is "RES".

locationlist of float, optional

Position on the X axis and Y axis. The default is None, in which case the component is placed in [0, 0].

angleoptional

Angle rotation in degrees. The default is 0.

use_instance_id_netlistbool, optional

Whether to enable the instance ID in the net list. The default is False.

global_netlist_listlist, optional

The default is None, in which case an empty list is passed.

Returns:
ansys.aedt.core.modeler.cad.object_3dcircuit.CircuitComponent

Circuit Component Object.

References

>>> oEditor.CreateComponent

Examples

>>> from ansys.aedt.core import TwinBuilder
>>> aedtapp = TwinBuilder()
>>> cmp = aedtapp.modeler.schematic.create_component(component_library="",component_name="ExcitationComponent")
>>> cmp.set_property("ShowPin",True)
>>> aedtapp.release_desktop(True, True)