DIAdem Help

Method: Add for Quantities

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

Method: Add for Quantities

Adds a physical quantity to the units catalog.

Set oQuantity = Object.Add(Name, LengthExp, MassExp, TimeExp, CurrentExp, TemperatureExp, MolarAmountExp, LuminousIntensityExp)
ObjectQuantities
Object with this method
NameString
Specifies the name.
LengthExpLongInteger
Specifies the exponent of the basic SI unit for length.
MassExpLongInteger
Specifies the exponent of the basic SI unit for mass.
TimeExpLongInteger
Specifies the exponent of the basic SI unit for time.
CurrentExpLongInteger
Specifies the exponent of the basic SI unit for electric current.
TemperatureExpLongInteger
Specifies the exponent of the basic SI unit for temperature.
MolarAmountExpLongInteger
Specifies the exponent of the basic SI unit for molar amount of substance.
LuminousIntensityExpLongInteger
Specifies the exponent of the basic SI unit for luminous intensity.
oQuantityQuantity
Returned object
Note  The parameters LengthExp, MassExp, TimeExp, CurrentExp, TemperatureExp, MolarAmountExp, and LuminousIntensityExp specify the Dimension of a physical quantity.

The following example adds the physical quantity NewQuantity to the units catalog:

VBScriptPython

 

Call UnitCatalog.Quantities.Add("NewQuantity",1,0,0,0,0,0,0)