Exemplo n.º 1
0
        /// <summary>
        /// set the second unit, used for time duration units
        /// </summary>
        private void SetSecondUnit()
        {
            if (_secondUnit == null)
            {
                _secondUnit = Model.Instances.New<IfcSIUnit>(si =>
                {
                    si.UnitType = IfcUnitEnum.TIMEUNIT;
                    si.Prefix = null;
                    si.Name = IfcSIUnitName.SECOND;
                });
            }

            if (_dimensionalExponents == null)
            {
                _dimensionalExponents = Model.Instances.New<IfcDimensionalExponents>(de =>
                {
                    de.LengthExponent = 1;
                    de.MassExponent = 1;
                    de.TimeExponent = 1;
                    de.ElectricCurrentExponent = 1;
                    de.ThermodynamicTemperatureExponent = 1;
                    de.AmountOfSubstanceExponent = 1;
                    de.LuminousIntensityExponent = 1;
                });
            }
        }
Exemplo n.º 2
0
 public void Reset()
 {
     Contacts.Clear();
     _ifcConversionBasedUnitYear = null;
     _ifcConversionBasedUnitMonth = null;
     _ifcConversionBasedUnitWeek = null;
     _secondUnit = null;
     _dimensionalExponents = null;
     WorkBook = null;
 }