AbstractRenamableElement#

class AbstractRenamableElement(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#

Bases: ansys.modelcenter.workflow.grpc_modelcenter.abstract_workflow_element.AbstractWorkflowElement, ansys.modelcenter.workflow.api.IRenamableElement, abc.ABC

Defines the implementation for renaming with gRPC.

This implementation is inheritable.

Overview#

rename

Rename the item.

Import detail#

from ansys.modelcenter.workflow.grpc_modelcenter.abstract_renamable import AbstractRenamableElement

Method detail#

AbstractRenamableElement.rename(new_name: str) None#

Rename the item.

Parameters:
new_namestr

New short name for the item.