pyCGM2.enums.enumFromtext#
- pyCGM2.enums.enumFromtext(memberStr, enum)#
Get the enum value from a text representation of an enum member.
- Parameters:
memberStr (str) – The text representation of the enum attribute label.
enum (Enum) – The enum class to search for the member.
- Returns:
Enum Member – Corresponding enum member.
- Raises:
Exception – If the memberStr is not found in the enum class.
Example
`python enums.enumFromtext("Global", enums.MomentProjection) `