Skip to content

title: Attribute Util description: " implementation of the attribute utilities


AttributeUtil

" implementation of the attribute utilities

AttributeUtil

Canonical path: Utils.General.AttributeUtil.AttributeUtil

implementation of the attribute utilities

get_enum_id_from_string staticmethod

get_enum_id_from_string(attribute_id: int, enum_str: str) -> int

get the enum ID from the value string

Parameters:

  • attribute_id (int) –

    attribute ID

  • enum_str (str) –

    enum string

Returns:

  • int

    enum ID

get_enum_id_from_value_string staticmethod

get_enum_id_from_value_string(prop: ParameterProperty) -> int

get the enum ID from the value string

Parameters:

Returns:

  • int

    enum ID

get_enum_value_string_from_id staticmethod

get_enum_value_string_from_id(prop: ParameterProperty, enum_id: int) -> str

get the enum value string from the ID

Parameters:

Returns:

  • str

    enum string

Placeholder