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#
The name of the property shown in the UI. If not set, the Name property is used. |
|
The group name of the property shown in the UI, and used to separate properties based on group name. |
|
The name of the property. |
|
Options shown in the drop-down, represented by a dictionary of int -> string. |
|
Returns whether a property is readonly. |
|
The tooltip of the property in the UI. |
|
The stored value of the property. |
|
Get the string representation of the value. |
Property detail#
- property OptionsProperty.DisplayName: str | None#
The name of the property shown in the UI. If not set, the Name property is used.
- property OptionsProperty.GroupName: str | None#
The group name of the property shown in the UI, and used to separate properties based on group name.
- property OptionsProperty.Options: dict[Any, Any] | 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.