vcUnitManager
A class used to manage vcUnit-related objects.
See in: Overview
Module: vcCore
Parent: -
Children -
Referenced by: -
Properties
Learn how to use properties here. The properties are also inherited from the parent class.
| Name | Type | Access | Description |
| CurrentUnitFamily | vcUnitFamily | R | Gets currently selected unit family. |
| UnitFamilies | dict[tuple[String, vcUnitFamily]] | R | Gets a list of all unit families. |
| UnitGroups | dict[tuple[String, vcUnitGroup]] | R | Gets a list of all unit groups. |
Methods
Learn how to use methods here. The methods are also inherited from the parent class.
| Name | Return Type | Parameters | Description |
| createQuantity | vcQuantity | String name, vcQuantityKind quantityKind | Create a new quantity of a given name and type.See moreParameters: name (String): The full name of the new quantity. quantityKind (vcQuantityKind): Whether a scalar or vector quantity. Exceptions: ValueError: When given quantity name is empty or not unique. Returns: vcQuantity: Created quantity. |
| createUnitFamily | vcUnitFamily | String name | Create a new unit family with a given name.See moreParameters: name (String): Specifies the name of the unit family and may not contain dot characters. Exceptions: ValueError: When given unit family name is empty or not unique. Returns: vcUnitFamily: Created unit family. |
| createUnitGroup | vcUnitGroup | String name | Create a new unit group of a given name.See moreParameters: name (String): Specifies the name of the unit group and may not contain dot characters. Exceptions: ValueError: When given unit group name is empty or not unique. Returns: vcUnitGroup: Created unit group. |
| findQuantity | vcQuantity | String name | Finds a quantity matching a given name.See moreParameters: name (String): Name of the searched quantity. Returns: vcQuantity: Found quantity, or None if no quantity with such name exists. See Quantity strings |
| findUnitFamily | vcUnitFamily | String name | Finds a unit family matching a given name.See moreParameters: name (String): Name of the searched unit family. Returns: vcUnitFamily: Found unit family, or None if no unit family with such name exists. See UnitFamily strings |
| findUnitGroup | vcUnitGroup | String name | Finds a unit group matching a given name.See moreParameters: name (String): Name of the searched unit group. Returns: vcUnitGroup: Found unit group, or None if no unit group with such name exists. See UnitGroup strings |