OptionsProperty#

class ansys.mechanical.stubs.v241.Ansys.ACT.Mechanical.AdditionalProperties.OptionsProperty#

Bases: object

Provides a way to create properties that show up as a drop down in the UI.

Overview#

Options

Options shown in the drop-down, represented by a dictionary of int -> string.

Name

The name of the property.

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.

Tooltip

The tooltip of the property in the UI.

Value

The stored value of the property.

ValueString

Get the string representation of the value.

ReadOnly

Returns whether a property is readonly.

Property detail#

property OptionsProperty.Options: System.Collections.Generic.IDictionary[System.Object, System.Object] | None

Options shown in the drop-down, represented by a dictionary of int -> string. Where the int represents the option, and string represents string shown in the UI. When an option is selected the Value property of the property is set to to the option int.

property OptionsProperty.Name: System.String | None

The name of the property.

property OptionsProperty.DisplayName: System.String | None

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

property OptionsProperty.GroupName: System.String | None

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

property OptionsProperty.Tooltip: System.String | None

The tooltip of the property in the UI.

property OptionsProperty.Value: System.Object | None

The stored value of the property.

property OptionsProperty.ValueString: System.String | None

Get the string representation of the value.

property OptionsProperty.ReadOnly: System.Boolean | None

Returns whether a property is readonly.