getVariableValue

Returns the value of the specified variable.

Syntax
getVariableValue (variableName)
Type
Pulse Python API command.
Description
Returns the value of the specified variable.
Inputs
variableName: The name of the queried variable.
Version History
2022.1

Example

#Load Pulse API
apidir = os.environ['ALTAIR_PULSE_API']
path = os.path.join(apidir,"python")
sys.path.append(path)

import pulse

pulse.getVariableValue("mass")