Method: Add for Quantities
- Updated2024-09-12
- 2 minute(s) read
Units Catalog > Methods > Method: Add for Quantities
Method: Add for Quantities
Adds a physical quantity to the units catalog.
Set oQuantity = Object.Add(Name, LengthExp, MassExp, TimeExp, CurrentExp, TemperatureExp, MolarAmountExp, LuminousIntensityExp)
| Object | Quantities Object with this method |
| Name | String Specifies the name. |
| LengthExp | LongInteger Specifies the exponent of the basic SI unit for length. |
| MassExp | LongInteger Specifies the exponent of the basic SI unit for mass. |
| TimeExp | LongInteger Specifies the exponent of the basic SI unit for time. |
| CurrentExp | LongInteger Specifies the exponent of the basic SI unit for electric current. |
| TemperatureExp | LongInteger Specifies the exponent of the basic SI unit for temperature. |
| MolarAmountExp | LongInteger Specifies the exponent of the basic SI unit for molar amount of substance. |
| LuminousIntensityExp | LongInteger Specifies the exponent of the basic SI unit for luminous intensity. |
| oQuantity | Quantity 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:
| VBScript | Python |
Call UnitCatalog.Quantities.Add("NewQuantity",1,0,0,0,0,0,0)
See Also
Procedures
Adding an Unknown Unit Symbol to the Units Catalog | Converting Channel Units in DIAdem ANALYSIS | Converting Channel Units with a Script | Converting Channels According to a Unit Set | Creating a New Unit Set | Creating a Physical Quantity in the Units Catalog | Extending the Units Catalog with a Script | Replacing and Converting Channel Units in the Input Help
