create_enumeration(owner, name, values, path=None, visibility=VK.PUBLIC)#

Create a named type defined by an enumeration.

The type has a name and a list of values.

Parameters:
ownersuite.Package

Owner of the type, which is either the model itself or a package.

namestr

Name of the type.

valuesList[str]

List of the enumeration values.

pathPath, default: None

Path of the file for storing the type. This parameter is ignored if the owner is a package. When the path is None and owner is the model, the type is stored in the model’s default file.

visibilityVK

Accessibility of the type.

Returns:
suite.NamedType