GeometryGym.Ifc.IfcNamedUnit.IfcNamedUnit C# (CSharp) Méthode

IfcNamedUnit() protected méthode

protected IfcNamedUnit ( DatabaseIfc m, IfcUnitEnum unitEnum, bool gendims ) : System
m DatabaseIfc
unitEnum IfcUnitEnum
gendims bool
Résultat System
        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;
            }
        }

Same methods

IfcNamedUnit::IfcNamedUnit ( ) : System
IfcNamedUnit::IfcNamedUnit ( DatabaseIfc db, IfcNamedUnit u ) : System