Accessing Property APIs

Workbench property values are exposed through Automation API wrappers in the namespace Ansys.ACT.WorkBench.Automation.Workflows. These wrappers support simple property interactions:

task = ExtAPI.DataModel.Tasks[0]
p1 = task.Properties[“PropertyOne”]
value = p1.Value
newValue = value * 2
p0.Value = newValue

The following table lists property APIs.

ClassMemberDescription
IWBPropertyNameThe property name.
ValueThe property value.
PropertyNameThe property name.
ValueThe property value.