Skip to main content
Common methods are cross-functional standard functions.

Create

Create creates a new feature.

Find

Find looks for a custom object by its name and directly gets the corresponding object in the active component.

Print

Setting and getting values can be easily done, mainly though the set and print functions. Most values of parameters are numeric, strings or booleans. print gets the value of a specific parameter: print irradianceSensor.YResolution Setting values is done by assigning a value, string or boolean to a Speos object.

Clone

Clone copies the object.

Delete

Delete deletes the oject.

Name

Name gets or modifies the name of the feature.

Visible

Visible gets or modifies the visibility of the feature.

Subject

Subject returns the underlying CustomObject.

StatusInfo

StatusInfo returns the warnings or error messages associated to the feature. If there are no errors, the returned string is empty.

PublishAllParameterstoWorkbench

PublishAllParameterstoWorkbench exposes the attributes of Speos elements so that Ansys Workbench can access and drive them.

Compute

Compute is used to trigger the generation of any object.
Note: Computation is not automatic on features during the script process as Compute events are executed at the end of the “Script” Command. So if you want your features to be up to date, you need to call explicitly the Compute() method on objects that are usually supposed to update automatically in the interactive session.