DAODesignVariableBuilder Class — NXOpen Python API Reference 12.0.0 documentation

# DAODesignVariableBuilder Class

class `NXOpen.CAE.Optimization.``DAODesignVariableBuilder`

  Bases: `NXOpen.Builder`

  Represents a `NXOpen.CAE.Optimization.DAODesignVariableBuilder`.

  To create a new instance of this class, use `NXOpen.CAE.Optimization.DAOSolutionCollection.CreateDesignVariableBuilder()`

  New in version NX8.0.0.

# Properties

Property | Description
--- | ---
GlobalSensitivityFlag | Returns or sets the flag if mark current design variable as global sensitivity design variable, only effective for global sensitivity optimization type
LowerLimit | Returns or sets the lower limit value
Name | Returns or sets the design variable name
Tag | Returns the Tag for this object.
UpperLimit | Returns or sets the upper limit value

# Methods

Method | Description
--- | ---
Commit | Commits any edits that have been applied to the builder.
Destroy | Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit.
GetObject | Returns the object currently being edited by this builder.
GetVariable | Gets the design variable
SetVariable | Sets the design variable
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate | Validate whether the inputs to the component are sufficient for commit to be called.

# Enumerations

DAODesignVariableBuilderVariable Enumeration | Represents the design variable type

# Property Detail

## GlobalSensitivityFlag

`DAODesignVariableBuilder.``GlobalSensitivityFlag`

  Returns or sets the flag if mark current design variable as global sensitivity design variable, only effective for global sensitivity optimization type

  `-------------------------------------`

  Getter Method

  Signature `GlobalSensitivityFlag`

  Returns: | Global sensitivity design variable flag
  Return type: | bool

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `GlobalSensitivityFlag`

  Parameters: | globalSensitivityFlag (bool) – Global sensitivity design variable flag

  New in version NX8.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

## LowerLimit

`DAODesignVariableBuilder.``LowerLimit`

  Returns or sets the lower limit value

  `-------------------------------------`

  Getter Method

  Signature `LowerLimit`

  Returns: | Lower limit value
  Return type: | float

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `LowerLimit`

  Parameters: | lowerLimit (float) – Lower limit value

  New in version NX8.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

## Name

`DAODesignVariableBuilder.``Name`

  Returns or sets the design variable name

  `-------------------------------------`

  Getter Method

  Signature `Name`

  Returns: | Design variable name
  Return type: | str

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `Name`

  Parameters: | designVariableName (str) – Design variable name

  New in version NX8.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

## UpperLimit

`DAODesignVariableBuilder.``UpperLimit`

  Returns or sets the upper limit value

  `-------------------------------------`

  Getter Method

  Signature `UpperLimit`

  Returns: | Upper limit value
  Return type: | float

  New in version NX8.0.0.

  License requirements: None.

  `-------------------------------------`

  Setter Method

  Signature `UpperLimit`

  Parameters: | upperLimit (float) – Upper limit value

  New in version NX8.0.0.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

# Method Detail

## GetVariable

`DAODesignVariableBuilder.``GetVariable`

  Gets the design variable

  Signature `GetVariable()`

  Returns: | a tuple
  Return type: | A tuple consisting of (variableType, variableExpression). variableType is a `NXOpen.CAE.Optimization.DAODesignVariableBuilderVariable`. Variable type variableExpression is a `NXOpen.Expression`. Variable expression

  New in version NX8.0.1.

  License requirements: None.

## SetVariable

`DAODesignVariableBuilder.``SetVariable`

  Sets the design variable

  Signature `SetVariable(variableType, variableExpression)`

  Parameters:

  - variableType (`NXOpen.CAE.Optimization.DAODesignVariableBuilderVariable`) – Variable type
  - variableExpression (`NXOpen.Expression`) – Variable Expression

  New in version NX8.0.1.

  License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)

## Validate

`DAODesignVariableBuilder.``Validate`

  Validate whether the inputs to the component are sufficient for commit to be called.

  If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.

  Signature `Validate()`

  Returns: | Was self validation successful
  Return type: | bool

  New in version NX3.0.1.

  License requirements: None.