Exemplo n.º 1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.IfcParse(propIndex, value);
                break;

            case 6:
                _parentContext = (IfcGeometricRepresentationContext)value.EntityVal;
                break;

            case 7:
                _targetScale = value.RealVal;
                break;

            case 8:
                _targetView =
                    (IfcGeometricProjectionEnum)Enum.Parse(typeof(IfcGeometricProjectionEnum), value.EnumVal, true);
                break;

            case 9:
                _userDefinedTargetView = value.StringVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 6:
                _parentContext = (IfcGeometricRepresentationContext)(value.EntityVal);
                return;

            case 7:
                _targetScale = value.RealVal;
                return;

            case 8:
                _targetView = (IfcGeometricProjectionEnum)System.Enum.Parse(typeof(IfcGeometricProjectionEnum), value.EnumVal, true);
                return;

            case 9:
                _userDefinedTargetView = value.StringVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
                case 0:
                case 1:
                case 2:
                case 3:
                case 4:
                case 5:
                    base.IfcParse(propIndex, value);
                    break;
                case 6:
                    _parentContext = (IfcGeometricRepresentationContext)value.EntityVal;
                    break;
                case 7:
                    _targetScale = value.RealVal;
                    break;
                case 8:
                    _targetView =
                        (IfcGeometricProjectionEnum)Enum.Parse(typeof(IfcGeometricProjectionEnum), value.EnumVal, true);
                    break;
                case 9:
                    _userDefinedTargetView = value.StringVal;
                    break;

                default:
                    this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }