ReferenceDatapin#
- class 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.IReferenceDatapin
Represents 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#
| Set the state of the datapin. | |
| Get the state of the datapin. | |
| Get the reference properties on the reference datapin. | 
| Reference equation describing the values that the datapin | |
| Flag indicating if the datapin is a direct reference. | 
| Return self==value. | 
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:
- str
- Reference 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)#
- Return self==value. 
- ReferenceDatapin.set_state(state: ansys.tools.variableinterop.VariableState) None#
- Set the state of the datapin. 
- ReferenceDatapin.get_state(hid: str | None = None) ansys.tools.variableinterop.VariableState#
- Get the state of the datapin. 
- ReferenceDatapin.get_reference_properties() Mapping[str, ansys.modelcenter.workflow.api.IReferenceProperty]#
- Get the reference properties on the reference datapin. - Returns:
- Mapping[- str,- IReferencePropertyBase]
- Mapping of names to reference properties.