DIAdem Help

Collection: UsedUnits

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

Collection: UsedUnits

The UsedUnits collection provides all the units of a physical quantity that are used, from a specific unit set in the units catalog.

The following example displays all units that are used in the physical quantity length of the unit set mechanics:

VBScriptPython

 

Dim oMyUnit, sOutput
For Each oMyUnit In UnitCatalog.Sets("mechanics").UsedQuantities("length").UsedUnits
  sOutput = sOutput & oMyUnit.Name & VbcrLf
Next
Call MsgBoxDisp (sOutput)

Properties

Count

Returned From

UsedQuantity.UsedUnits