Method: SetAsDefault for UsedUnits
- Updated2024-09-12
- 1 minute(s) read
Units Catalog > Methods > Method: SetAsDefault for UsedUnits
Method: SetAsDefault for UsedUnits
Specifies a unit as the default unit of a physical quantity within a unit set in the units catalog.
Object.SetAsDefault(NameOrIndex)
| Object | UsedUnits Object with this method |
| NameOrIndex | Variant Specifies the name or the index of the unit. |
The following example specifies the unit liter as the default unit of the physical quantity volume from the unit set mechanics:
| VBScript | Python |
Call UnitCatalog.Sets("mechanics").UsedQuantities("volume").UsedUnits.SetAsDefault("liter")
See Also
Procedures
Adding an Unknown Unit Symbol to the Units Catalog | Converting Channel Units in DIAdem ANALYSIS | Converting Channel Units with a Script | Converting Channels According to a Unit Set | Creating a New Unit Set | Creating a Physical Quantity in the Units Catalog | Extending the Units Catalog with a Script | Replacing and Converting Channel Units in the Input Help