PartVersion(ver=None)

Defines the Version of the given Part. The version can only be defined once with in a given Part/sub-part structure, because of this it is recommended to define the version at the top level. If the version is defined twice the first call will win and and remaining calls will result in a warning message If version is not provided, the function will return the current defined name of the Part. If name is not explicitly set Parts will fallback to the a version of 0.0.0

Parameters:

name (Optional[str|Version]) – The version of this Part.

Returns:

Version of the Parts.

Return type:

str

Examples

Set the version

PartVersion("2.0.3")
PartVersion(Version("2.0.3"))