Skip to main content

Rocky PrePost scripting 2025 R1

RAParametricVar

Last update: 17.07.2025

class RAParametricVar

Rocky PrePost Scripting wrapper for a parametric input variable.

Parametric input variables can be retrieved via a project’s RAInputVariables. This wrapper provides methods to rename the variable and change its value. Example usage:

input_variables = project.GetInputVariables()
variable = input_variables.CreateVariable('a')

variable.SetName('b')
variable.SetValue(100)

Methods:

Name Description
GetValue() Get the variable's current value.
SetValue(value) Set the variable's current value.

GetValue()

Get the variable’s current value.

SetValue(value: float)

Set the variable’s current value.

Connect with Ansys