コード例 #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.Parse(propIndex, value, nestedIndex);
                return;

            case 4:
                _connectionGeometry = (IfcConnectionGeometry)(value.EntityVal);
                return;

            case 5:
                _relatingElement = (IfcElement)(value.EntityVal);
                return;

            case 6:
                _relatedElement = (IfcElement)(value.EntityVal);
                return;

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

            case 4:
                _relatingSpace = (IfcSpaceBoundarySelect)(value.EntityVal);
                return;

            case 5:
                _relatedBuildingElement = (IfcElement)(value.EntityVal);
                return;

            case 6:
                _connectionGeometry = (IfcConnectionGeometry)(value.EntityVal);
                return;

            case 7:
                _physicalOrVirtualBoundary = (IfcPhysicalOrVirtualEnum)System.Enum.Parse(typeof(IfcPhysicalOrVirtualEnum), value.EnumVal, true);
                return;

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

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