    

 ## On this page

  

 

 # RAParametricVar

 Last update: 17.07.2025 

<a id="generated.RAParametricVar"></a>

### *class* RAParametricVar

Rocky PrePost Scripting wrapper for a parametric input variable.

Parametric input variables can be retrieved via a project’s [`RAInputVariables`](RAInputVariables.md#generated.RAInputVariables). This wrapper provides methods to rename the variable and change its value. Example usage:

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

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

```

**Methods:**

NameDescription[`GetValue`](#generated.RAParametricVar.GetValue)()Get the variable's current value.[`SetValue`](#generated.RAParametricVar.SetValue)(value)Set the variable's current value.<a id="generated.RAParametricVar.GetValue"></a>

#### GetValue()

Get the variable’s current value.

<a id="generated.RAParametricVar.SetValue"></a>

#### SetValue(value: float)

Set the variable’s current value.