DIAdem Help

Content Type
Programming Language
Current manual

Collection: UsedUnits

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

Was this information helpful?