Beispiel #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 12:
                _linearUnits = (CobieLinearUnit)(value.EntityVal);
                return;

            case 13:
                _areaUnits = (CobieAreaUnit)(value.EntityVal);
                return;

            case 14:
                _volumeUnits = (CobieVolumeUnit)(value.EntityVal);
                return;

            case 15:
                _currencyUnit = (CobieCurrencyUnit)(value.EntityVal);
                return;

            case 16:
                _areaMeasurement = value.StringVal;
                return;

            case 17:
                _project = (CobieProject)(value.EntityVal);
                return;

            case 18:
                _site = (CobieSite)(value.EntityVal);
                return;

            case 19:
                _phase = (CobiePhase)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
Beispiel #2
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _name = value.StringVal;
                return;

            case 1:
                _project = (CobieProject)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }