The create_datapin.py module#

Summary#

create_datapin

Create a mc_api.IDatapin object using the given parameters.

Description#

Defines the function for creating a datapin object.

Creation requires a given datapin type and gRPC information.

Module detail#

create_datapin.create_datapin(var_value_type: ansys.api.modelcenter.v0.variable_value_messages_pb2.VariableType, element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine) ansys.modelcenter.workflow.api.IDatapin#

Create a mc_api.IDatapin object using the given parameters.

Parameters:
var_value_typeVariableType

Variable type for the datapin.

element_idElementId

ID of the particular datapin.

engineEngine

Engine that created the datapin