Repository.Unit.GetAllUnits

Gets the units of measurement associated with a Synthesis repository. Returns a UnitInfo object array that contains all the predefined units of measurement in that repository.

Syntax
.Unit.GetAllUnits

Example
VBA|VB.NET MyRepository Repository ListOfUnits UnitInfo ListOfUnits = MyRepository.Unit.GetAllUnits NumberofElements Integer NumberofElements = UBound(ListofUnits) - LBound(ListofUnits) + 1 MsgBox (NumberofElements)