The element_wrapper.py module#

Summary#

create_element

Create an appropriately-typed wrapper given gRPC element information.

Description#

Defines a function that creates a wrapper from gRPC element information.

Module detail#

element_wrapper.create_element(info: ansys.api.modelcenter.v0.workflow_messages_pb2.ElementInfo, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine) ansys.engineeringworkflow.api.IElement#

Create an appropriately-typed wrapper given gRPC element information.

Parameters:
infoElementInfo

Element information from gRPC.

engineEngine

Engine to use to create the element.

Returns:
aew_api.IElement

Created element.