Esempio n. 1
0
        public override void Parse(int propIndex, IPropertyValue value, int[] nestedIndex)
        {
            switch (propIndex)
            {
            case 0:
                _hatchLineAppearance = (IfcCurveStyle)(value.EntityVal);
                return;

            case 1:
                _startOfNextHatchLine = (IfcHatchLineDistanceSelect)(value.EntityVal);
                return;

            case 2:
                _pointOfReferenceHatchLine = (IfcCartesianPoint)(value.EntityVal);
                return;

            case 3:
                _patternStart = (IfcCartesianPoint)(value.EntityVal);
                return;

            case 4:
                _hatchLineAngle = value.RealVal;
                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:
                _hatchLineAppearance = (IfcCurveStyle)value.EntityVal;
                break;

            case 1:
                _startOfNextHatchLine = (IfcHatchLineDistanceSelect)value.EntityVal;
                break;

            case 2:
                _pointOfReferenceHatchLine = (IfcCartesianPoint)value.EntityVal;
                break;

            case 3:
                _patternStart = (IfcCartesianPoint)value.EntityVal;
                break;

            case 4:
                _hatchLineAngle = value.RealVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
Esempio n. 3
0
 public IfcFillAreaStyleHatching(IfcCurveStyle __HatchLineAppearance, IfcHatchLineDistanceSelect __StartOfNextHatchLine, IfcCartesianPoint __PointOfReferenceHatchLine, IfcCartesianPoint __PatternStart, IfcPlaneAngleMeasure __HatchLineAngle)
 {
     this._HatchLineAppearance       = __HatchLineAppearance;
     this._StartOfNextHatchLine      = __StartOfNextHatchLine;
     this._PointOfReferenceHatchLine = __PointOfReferenceHatchLine;
     this._PatternStart   = __PatternStart;
     this._HatchLineAngle = __HatchLineAngle;
 }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             _hatchLineAppearance = (IfcCurveStyle) value.EntityVal;
             break;
         case 1:
             _startOfNextHatchLine = (IfcHatchLineDistanceSelect) value.EntityVal;
             break;
         case 2:
             _pointOfReferenceHatchLine = (IfcCartesianPoint) value.EntityVal;
             break;
         case 3:
             _patternStart = (IfcCartesianPoint) value.EntityVal;
             break;
         case 4:
             _hatchLineAngle = value.RealVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }