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

            case 1:
                _trim1.InternalAdd((IfcTrimmingSelect)value.EntityVal);
                return;

            case 2:
                _trim2.InternalAdd((IfcTrimmingSelect)value.EntityVal);
                return;

            case 3:
                _senseAgreement = value.BooleanVal;
                return;

            case 4:
                _masterRepresentation = (IfcTrimmingPreference)System.Enum.Parse(typeof(IfcTrimmingPreference), value.EnumVal, true);
                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 IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)value.EntityVal;
                break;

            case 1:
                _trim1.Add((IfcTrimmingSelect)value.EntityVal);
                break;

            case 2:
                _trim2.Add((IfcTrimmingSelect)value.EntityVal);
                break;

            case 3:
                _senseAgreement = value.BooleanVal;
                break;

            case 4:
                _masterRepresentation =
                    (IfcTrimmingPreference)Enum.Parse(typeof(IfcTrimmingPreference), value.EnumVal, true);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #3
0
ファイル: IfcPointOnCurve.cs プロジェクト: keremer/inFizYon
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)(value.EntityVal);
                return;

            case 1:
                _pointParameter = value.RealVal;
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #4
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)value.EntityVal;
                break;

            case 1:
                _pointParameter = value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #5
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)value.EntityVal;
                break;

            case 1:
                _distance = value.RealVal;
                break;

            case 2:
                _selfIntersect = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #6
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcPlane)(value.EntityVal);
                return;

            case 1:
                _outerBoundary = (IfcCurve)(value.EntityVal);
                return;

            case 2:
                _innerBoundaries.InternalAdd((IfcCurve)value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #7
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _transition = (IfcTransitionCode)System.Enum.Parse(typeof(IfcTransitionCode), value.EnumVal, true);
                return;

            case 1:
                _sameSense = value.BooleanVal;
                return;

            case 2:
                _parentCurve = (IfcCurve)(value.EntityVal);
                return;

            default:
                throw new XbimParserException(string.Format("Attribute index {0} is out of range for {1}", propIndex + 1, GetType().Name.ToUpper()));
            }
        }
コード例 #8
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _transition = (IfcTransitionCode)Enum.Parse(typeof(IfcTransitionCode), value.EnumVal, true);
                break;

            case 1:
                _sameSense = value.BooleanVal;
                break;

            case 2:
                _parentCurve = (IfcCurve)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #9
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcPlane)value.EntityVal;
                break;

            case 1:
                _outerBoundary = (IfcCurve)value.EntityVal;
                break;

            case 2:
                _innerBoundaries.Add((IfcCurve)value.EntityVal);
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #10
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisCurve = (IfcCurve)(value.EntityVal);
                return;

            case 1:
                _distance = value.RealVal;
                return;

            case 2:
                _selfIntersect = value.BooleanVal;
                return;

            case 3:
                _refDirection = (IfcDirection)(value.EntityVal);
                return;

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