Accessing Property APIs

As of ANSYS 18.0, Workbench property values are exposed at the user level through Automation API wrappers in the namespace Ansys.ACT.WorkBench.Automation.Workflows. Simple property interactions are now fully supported through these wrappers:

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

The following table lists the APIs that are available.

ClassMemberDescription

IWBProperty

Name

The property name.

Value

The property value.

Property

Name

The property name.

Value

The property value.


Release 18.2 - © ANSYS, Inc. All rights reserved.