    

 ## On this page

  

 

 # ResponseVariable Class

 Last update: 19.06.2026 

**Namespace:** `Phoenix.Optimization`

## Overview

Class to hold information about a design variable

## Inheritance

![ResponseVariable](/sites/default/files/git_ansys/markdown_3306fa4fe71ffce83fd2860374ec3ee5_automation/class_phoenix_1_1_optimization_1_1_response_variable.png)

## Declaration

```csharp
class ResponseVariable

```

## Description

Class to hold information about a design variable

## Public Member Functions

TypeNameDescription`ResponseVariable (string name, bool isNameInMC, bool isDuplicated, bool isItOutput)`Creates new a variable with the given name and status of presence in MCvoid`UpdateMe (string name, bool isNameInMc, bool isItOutput)`## Properties

TypeNameDescriptionstring`ErrText [get]`bool`HasError [get]`int`Index [get, set]`bool`IsDuplicated [get, set]`summary&gt; Gets a value indicating whether the variable "HasError" /summary&gt;bool`IsItOutput [get, set]`bool`IsNameInMc [get, set]`summary&gt; Gets a or sets value indicating whether the "IsDuplicated" has a #.bool`IsSelected [get, set]`summary&gt; Gets or sets a reference to "IsNameInMc" /summary&gt;string`Name [get, set]`Name of the design variable### Properties inherited from <a href="">IVariableName</a>

TypeNameDescriptionstring`Name [get]`The name of the variable## Constructor &amp; Destructor Documentation

### ResponseVariable()

```csharp
ResponseVariable ( string name, bool isNameInMC, bool isDuplicated, bool isItOutput )

```

Creates new a variable with the given name and status of presence in MC summary&gt; Gets a reference to "Index" /summary&gt;

**Parameters:**

- `name` - name
- `isNameInMC` - does MC has this variable name

## Member Function Documentation

### IsDuplicated

```csharp
bool IsDuplicated

```

summary&gt; Gets a value indicating whether the variable "HasError" /summary&gt;

### IsNameInMc

```csharp
bool IsNameInMc

```

summary&gt; Gets a or sets value indicating whether the "IsDuplicated" has a #. /summary&gt;

### IsSelected

```csharp
bool IsSelected

```

summary&gt; Gets or sets a reference to "IsNameInMc" /summary&gt;

### Name

```csharp
string Name

```

Name of the design variable summary&gt; Gets or sets a reference to "IsSelected" /summary&gt;

Implements IVariableName.

## Property Documentation

### IsDuplicated

```csharp
bool IsDuplicated

```

summary&gt; Gets a value indicating whether the variable "HasError" /summary&gt;

### IsNameInMc

```csharp
bool IsNameInMc

```

summary&gt; Gets a or sets value indicating whether the "IsDuplicated" has a #. /summary&gt;

### IsSelected

```csharp
bool IsSelected

```

summary&gt; Gets or sets a reference to "IsNameInMc" /summary&gt;

### Name

```csharp
string Name

```

Name of the design variable summary&gt; Gets or sets a reference to "IsSelected" /summary&gt;

Implements IVariableName.