add_operation#

Matrix.add_operation(operation_type: str | MatrixOperationsQ3D, source_names: str | list | None = None, new_net_name: str | None = None, new_source_name: str | None = None, new_sink_name: str | None = None) bool#

Add a new operation to existing matrix.

Parameters:
operation_typestr or ansys.aedt.core.generic.constants.MatrixOperationsQ3D

Operation to perform

source_namesstr or list, optional

List or str containing the content of the matrix reduction (eg. source name).

new_net_namestr, optional

Name of the new net. The default is None.

new_source_namestr, optional

Name of the new source. The default is None.

new_sink_namestr, optional

Name of the new sink. The default is None.

Returns:
bool

True if succeeded.