コード例 #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:
                _operationType = (IfcPermeableCoveringOperationEnum)System.Enum.Parse(typeof(IfcPermeableCoveringOperationEnum), value.EnumVal, true);
                return;

            case 5:
                _panelPosition = (IfcWindowPanelPositionEnum)System.Enum.Parse(typeof(IfcWindowPanelPositionEnum), value.EnumVal, true);
                return;

            case 6:
                _frameDepth = value.RealVal;
                return;

            case 7:
                _frameThickness = value.RealVal;
                return;

            case 8:
                _shapeAspectStyle = (IfcShapeAspect)(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 IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
            case 1:
            case 2:
            case 3:
                base.IfcParse(propIndex, value);
                break;

            case 4:
                _OperationType = (IfcPermeableCoveringOperationEnum)Enum.Parse(typeof(IfcPermeableCoveringOperationEnum), value.EnumVal);
                break;

            case 5:
                _PanelPosition = (IfcWindowPanelPositionEnum)Enum.Parse(typeof(IfcWindowPanelPositionEnum), value.EnumVal);
                break;

            case 6:
                _FrameDepth = value.RealVal;
                break;

            case 7:
                _FrameThickness = value.RealVal;
                break;

            case 8:
                _ShapeAspectStyle = (IfcShapeAspect)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
コード例 #3
0
 public IfcPermeableCoveringProperties(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcPermeableCoveringOperationEnum operationType, IfcWindowPanelPositionEnum panelPosition, IfcPositiveLengthMeasure frameDepth, IfcPositiveLengthMeasure frameThickness, IfcShapeAspect shapeAspectStyle) : base(globalId, ownerHistory, name, description)
 {
     OperationType    = operationType;
     PanelPosition    = panelPosition;
     FrameDepth       = frameDepth;
     FrameThickness   = frameThickness;
     ShapeAspectStyle = shapeAspectStyle;
 }
コード例 #4
0
 public IfcPermeableCoveringProperties(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcPermeableCoveringOperationEnum __OperationType, IfcWindowPanelPositionEnum __PanelPosition, IfcPositiveLengthMeasure?__FrameDepth, IfcPositiveLengthMeasure?__FrameThickness, IfcShapeAspect __ShapeAspectStyle)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._OperationType    = __OperationType;
     this._PanelPosition    = __PanelPosition;
     this._FrameDepth       = __FrameDepth;
     this._FrameThickness   = __FrameThickness;
     this._ShapeAspectStyle = __ShapeAspectStyle;
 }
コード例 #5
0
        }                                                        // optional


        /// <summary>
        /// Construct a IfcPermeableCoveringProperties with all required attributes.
        /// </summary>
        public IfcPermeableCoveringProperties(IfcGloballyUniqueId globalId, IfcPermeableCoveringOperationEnum operationType, IfcWindowPanelPositionEnum panelPosition) : base(globalId)
        {
            OperationType = operationType;
            PanelPosition = panelPosition;
        }
コード例 #6
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
         case 1:
         case 2:
         case 3:
             base.IfcParse(propIndex, value);
             break;
         case 4:
             _OperationType = (IfcPermeableCoveringOperationEnum)Enum.Parse(typeof(IfcPermeableCoveringOperationEnum), value.EnumVal);
             break;
         case 5:
             _PanelPosition = (IfcWindowPanelPositionEnum)Enum.Parse(typeof(IfcWindowPanelPositionEnum), value.EnumVal);
             break;
         case 6:
             _FrameDepth = value.RealVal;
             break;
         case 7:
             _FrameThickness = value.RealVal;
             break;
         case 8:
             _ShapeAspectStyle = (IfcShapeAspect)value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }