Customization > Automation Interface > Functions > For System Simulations > Attribute Functions > GetAttribute function (automation interface)
GetAttribute function (automation interface)
The GetAttribute function is being deprecated and you should use the GetAttribute2 function instead. The GetAttribute2 function can work with different instances of a state machine. Tell me more...
Syntax:
GetAttribute(<handle to listener dll>,"<attribute>")
Where:
<handle to listener dll> is a numeric value that specifies the id of the active listener dll, which is returned by the CreateStateMachine and GetStateMachineHandle functions.
<attribute> is a string that specifies the name of the attribute. Identifying attributes
This function returns the value of the attribute as a string.
Examples
GetAttribute(57980432,"Status")
Was this helpful?