DIAdem Help

Method: SetAsDefault for UsedUnits

  • Updated2024-09-12
  • 1 minute(s) read

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)
ObjectUsedUnits
Object with this method
NameOrIndexVariant
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:

VBScriptPython

 

Call UnitCatalog.Sets("mechanics").UsedQuantities("volume").UsedUnits.SetAsDefault("liter")