Пример #1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcSurface)(value.EntityVal);
                return;

            case 1:
                _pointParameterU = value.RealVal;
                return;

            case 2:
                _pointParameterV = value.RealVal;
                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:
                _basisSurface = (IfcSurface)value.EntityVal;
                break;

            case 1:
                _pointParameterU = value.RealVal;
                break;

            case 2:
                _pointParameterV = value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #3
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                _basisSurface = (IfcSurface)value.EntityVal;
                break;

            case 1:
                _u1 = value.RealVal;
                break;

            case 2:
                _v1 = value.RealVal;
                break;

            case 3:
                _u2 = value.RealVal;
                break;

            case 4:
                _v2 = value.RealVal;
                break;

            case 5:
                _uSense = value.BooleanVal;
                break;

            case 6:
                _vSense = value.BooleanVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Пример #4
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _baseSurface = (IfcSurface) value.EntityVal;
             break;
         case 1:
             _agreementFlag = value.BooleanVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
 public IXbimFace CreateFace(IfcSurface surface)
 {
     return _engine.CreateFace(surface);
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
             base.IfcParse(propIndex, value);
             break;
         case 2:
             _directrix = (IfcCurve)value.EntityVal;
             break;
         case 3:
             _startParam = new IfcParameterValue(value.RealVal);
             break;
         case 4:
             _endParam = new IfcParameterValue(value.RealVal);
             break;
         case 5:
             _referenceSurface = (IfcSurface)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value);
             break;
     }
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _basisSurface = (IfcSurface) value.EntityVal;
             break;
         case 1:
             _u1 = value.RealVal;
             break;
         case 2:
             _v1 = value.RealVal;
             break;
         case 3:
             _u2 = value.RealVal;
             break;
         case 4:
             _v2 = value.RealVal;
             break;
         case 5:
             _uSense = value.BooleanVal;
             break;
         case 6:
             _vSense = value.BooleanVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #8
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _basisSurface = (IfcSurface) value.EntityVal;
             break;
         case 1:
             _pointParameterU = value.RealVal;
             break;
         case 2:
             _pointParameterV = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }