deactivate_rlc_component#

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

Deactivate RLC component with a possibility to convert it 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.

pec_boundarybool, optional

Whether to define the PEC boundary, The default is False. If set to True, a perfect short is created between the pin and impedance is ignored. This parameter is only supported on a port created between two pins, such as when there is no pin group.

Returns:
bool

True when successful, False when failed.

Examples

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