deactivate_rlc_component#

Components.deactivate_rlc_component(component=None, create_circuit_port=False)[source]#

Deactivate RLC component with a possibility to convert to a circuit port.

Parameters:
componentstr

Reference designator of the RLC component.

create_circuit_portbool, optional

Whether to replace the deactivated RLC component with a circuit port. The default is False.

Returns:
bool

True when successful, False when failed.

Examples

>>> from pyaedt import Edb
>>> edb_file = r'C:\my_edb_file.aedb'
>>> edb = Edb(edb_file)
>>> for cmp in list(edb.components.components.keys()):
>>>     edb.components.deactivate_rlc_component(component=cmp, create_circuit_port=False)
>>> edb.save_edb()
>>> edb.close_edb()