update#

Sources.update(original_name: str = None, new_source: str = None) bool#

Update the source in AEDT.

Parameters:
original_namestr, optional

Original name of the source. The default value is None.

new_sourcestr, optional

New name of the source. The default value is None.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core.modules.boundary.circuit_boundary import Sources
>>> source = Sources(app, name="V1")
>>> source.update(original_name="V1", new_source="V2")