ReferenceDatapin#
- class ansys.modelcenter.workflow.grpc_modelcenter.reference_datapin.ReferenceDatapin(element_id: ansys.api.modelcenter.v0.element_messages_pb2.ElementId, engine: ansys.modelcenter.workflow.grpc_modelcenter.engine.Engine)#
Bases:
ReferenceDatapinBase,ansys.modelcenter.workflow.api.IReferenceDatapinRepresents a reference datapin.
Note
This class should not be directly instantiated by clients. Get a
Workflowobject from an instantiatedEngineinstance and use it to get a valid instance of this object.
Overview#
Import detail#
from ansys.modelcenter.workflow.grpc_modelcenter.reference_datapin import ReferenceDatapin
Property detail#
- property ReferenceDatapin.equation: str#
Reference equation describing the values that the datapin references.
- Returns:
strReference equation.
- property ReferenceDatapin.is_direct: bool#
Flag indicating if the datapin is a direct reference.
Direct reference datapins refer to one specific datapin only. Their equations are just the name of one other datapin. Only direct-reference datapins that refer to a datapin that can be set directly can use the
set_state()method to set the referenced datapin.- Returns:
- bool
Trueif the datapin is a direct reference,Falseotherwise.
Method detail#
- ReferenceDatapin.__eq__(other)#
- ReferenceDatapin.set_state(state: ansys.tools.variableinterop.VariableState) None#
Set the state of the datapin.