Workbench parameter objects are exposed through Automation API wrappers in the
namespace Ansys.ACT.WorkBench.Automation.Workflows
. These
wrappers fully support simple parameter interactions:
task = ExtAPI.DataModel.Tasks[0] p0 = task.Parameters[0] value = p0.Value newValue = value * 2 p0.Value = newValue
The following table lists the parameter APIs.
Class | Member | Description |
---|---|---|
IWBParameter | Name | The parameter name. |
Caption | The parameter display text. | |
Value | The parameter value for the current design point. | |
Usage | The parameter usage. | |
Parameter | Name | The parameter name. |
Caption | The parameter display text. | |
Value | The parameter value for the current design point. | |
| The parameter usage. | |
InternalObject | The Workbench parameter data reference. | |
ParameterUsage | Input | A parameter whose value is to be used by the data model. |
Output | A parameter whose value is either based on an expression or provided directly by the data model. | |
Unknown | The parameter usage could not be determined. |