OptionsProperty#

class ansys.mechanical.stubs.v261.Ansys.ACT.Mechanical.AdditionalProperties.OptionsProperty(name: str, groupName: str)#

Bases: object

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

Overview#

CopyFrom

CopyFrom method.

Equals

Equals method.

GetHashCode

GetHashCode method.

GetObjectData

GetObjectData method.

GetType

GetType method.

Resume

Resume method.

ToString

ToString method.

add_OnAfterPropertyChanged

add_OnAfterPropertyChanged method.

add_OnBeforePropertyChanged

add_OnBeforePropertyChanged method.

remove_OnAfterPropertyChanged

remove_OnAfterPropertyChanged method.

remove_OnBeforePropertyChanged

remove_OnBeforePropertyChanged method.

Access

Access 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.

ID

ID property.

Name

The name of the property.

Options

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

Owner

Owner property.

PropertyControl

PropertyControl property.

ReadOnly

Returns whether a property is readonly.

Tag

Tag property.

Tooltip

The tooltip of the property in the UI.

Type

Type property.

Valid

Returns whether a property is valid.

Value

The stored value of the property.

ValueString

Get the string representation of the value.

Property detail#

property OptionsProperty.Access: Ansys.Common.Interop.WBPropertyBrowsing.AnsPropertyAccess | None#

Access property.

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.ID: int | None#

ID property.

property OptionsProperty.Name: str | None#

The name of the property.

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.

property OptionsProperty.Owner: Any | None#

Owner property.

property OptionsProperty.PropertyControl: Ansys.ACT.Mechanical.AdditionalProperties.Control | None#

PropertyControl property.

property OptionsProperty.ReadOnly: bool | None#

Returns whether a property is readonly.

property OptionsProperty.Tag: Any | None#

Tag property.

property OptionsProperty.Tooltip: str | None#

The tooltip of the property in the UI.

property OptionsProperty.Type: System.UInt16 | None#

Type property.

property OptionsProperty.Valid: bool | None#

Returns whether a property is valid.

property OptionsProperty.Value: Any | None#

The stored value of the property.

property OptionsProperty.ValueString: str | None#

Get the string representation of the value.

Method detail#

OptionsProperty.CopyFrom(property: Ansys.ACT.Mechanical.AdditionalProperties.CustomProperty) None#

CopyFrom method.

OptionsProperty.Equals(obj: Any) bool#

Equals method.

OptionsProperty.GetHashCode() int#

GetHashCode method.

OptionsProperty.GetObjectData(info: System.Runtime.Serialization.SerializationInfo, context: System.Runtime.Serialization.StreamingContext) None#

GetObjectData method.

OptionsProperty.GetType() type#

GetType method.

OptionsProperty.Resume(property: Ansys.ACT.Mechanical.AdditionalProperties.CustomProperty) None#

Resume method.

OptionsProperty.ToString() str#

ToString method.

OptionsProperty.add_OnAfterPropertyChanged(value: System.EventHandler[Any]) None#

add_OnAfterPropertyChanged method.

OptionsProperty.add_OnBeforePropertyChanged(value: System.EventHandler[Any]) None#

add_OnBeforePropertyChanged method.

OptionsProperty.remove_OnAfterPropertyChanged(value: System.EventHandler[Any]) None#

remove_OnAfterPropertyChanged method.

OptionsProperty.remove_OnBeforePropertyChanged(value: System.EventHandler[Any]) None#

remove_OnBeforePropertyChanged method.