protected IfcNamedUnit(DatabaseIfc m, IfcUnitEnum unitEnum, bool gendims)
: base(m)
{
mUnitType = unitEnum;
if (gendims)
{
if (unitEnum == IfcUnitEnum.LENGTHUNIT)
mDimensions = new IfcDimensionalExponents(m, 1, 0, 0, 0, 0, 0, 0).mIndex;
else if (unitEnum == IfcUnitEnum.AREAUNIT)
mDimensions = new IfcDimensionalExponents(m, 2, 0, 0, 0, 0, 0, 0).mIndex;
else if (unitEnum == IfcUnitEnum.VOLUMEUNIT)
mDimensions = new IfcDimensionalExponents(m, 3, 0, 0, 0, 0, 0, 0).mIndex;
else if (unitEnum == IfcUnitEnum.PLANEANGLEUNIT)
mDimensions = new IfcDimensionalExponents(m, 0, 0, 0, 0, 0, 0, 0).mIndex;
}
}