Skip to main content

Mechanical scripting interface

ExpressionProperty

Last update: 14.01.2025

class Ansys.ACT.Mechanical.AdditionalProperties.ExpressionProperty

Bases: object

Provides a way to create properties that can hold expressions.

Overview

Properties

Name Description
DisplayName The name of the property shown in the UI. If not set, the Name property is used.
GroupName The group name of the property shown in the UI, and used to separate properties based on group name.
Name The name of the property.
ReadOnly Returns whether a property is readonly.
Tooltip The tooltip of the property in the UI.
Value The stored value of the property.
ValueString Get the string representation of the value.

Property detail

property ExpressionProperty.DisplayName : str | None

The name of the property shown in the UI. If not set, the Name property is used.

property ExpressionProperty.GroupName : str | None

The group name of the property shown in the UI, and used to separate properties based on group name.

property ExpressionProperty.Name : str | None

The name of the property.

property ExpressionProperty.ReadOnly : bool | None

Returns whether a property is readonly.

property ExpressionProperty.Tooltip : str | None

The tooltip of the property in the UI.

property ExpressionProperty.Value : Any | None

The stored value of the property.

property ExpressionProperty.ValueString : str | None

Get the string representation of the value.