DbDoubleDimension
- Last UpdatedJun 02, 2022
- 1 minute read
Represents a standard or compound dimension constructed via static constructors. For example, construct a compound dimension from an expression
DbDoubleDimension d1 = DbDoubleDimension.GetDimension("volt/m");
or construct a standard dimension from a standard enumeration
DbDoubleDimension d1 = DbDoubleDimension.GetDimension(DbDimension.DIST);
There are properties to get the current units for given dimension, all units for given dimension etc. For example, get all the units of given dimension
DbDoubleDimension mass = DbDoubleDimension.GetDimension(DbDimension.MASS);
DbDoubleUnits[] massUnits = mass.Units;
DbAttribute also has a property, Dimension, which returns the dimension of given attribute. For example,
DbAttribute ud1 = DbAttribute.GetDbAttribute(":UD1");
DbDoubleDimension dimension = ud1.Dimension;