Example #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()));
            }
        }
Example #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;
            }
        }
Example #3
0
 internal IfcWindowPanelProperties(DatabaseIfc m, string name, IfcWindowPanelOperationEnum op, IfcWindowPanelPositionEnum panel, double frameDepth, double frameThick)
     : base(m, name)
 {
     mOperationType  = op;
     mPanelPosition  = panel;
     mFrameDepth     = frameDepth;
     mFrameThickness = frameThick;
 }
 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;
 }
Example #5
0
 internal IfcWindowPanelProperties(IfcWindowPanelProperties p)
     : base(p)
 {
     mOperationType    = p.mOperationType;
     mPanelPosition    = p.mPanelPosition;
     mFrameDepth       = p.mFrameDepth;
     mFrameThickness   = p.mFrameThickness;
     mShapeAspectStyle = p.mShapeAspectStyle;
 }
 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;
 }
Example #7
0
 internal IfcWindowPanelProperties(DatabaseIfc db, IfcWindowPanelProperties p) : base(db, p)
 {
     mOperationType  = p.mOperationType;
     mPanelPosition  = p.mPanelPosition;
     mFrameDepth     = p.mFrameDepth;
     mFrameThickness = p.mFrameThickness;
     if (p.mShapeAspectStyle > 0)
     {
         ShapeAspectStyle = db.Factory.Duplicate(p.ShapeAspectStyle) as IfcShapeAspect;
     }
 }
Example #8
0
 internal IfcWindowPanelProperties(DatabaseIfc db, IfcWindowPanelProperties p, DuplicateOptions options) : base(db, p, options)
 {
     mOperationType  = p.mOperationType;
     mPanelPosition  = p.mPanelPosition;
     mFrameDepth     = p.mFrameDepth;
     mFrameThickness = p.mFrameThickness;
     if (p.mShapeAspectStyle != null)
     {
         ShapeAspectStyle = db.Factory.Duplicate(p.ShapeAspectStyle);
     }
 }
Example #9
0
 internal IfcWindowPanelProperties(DatabaseIfc m, string name, IfcWindowPanelOperationEnum op, IfcWindowPanelPositionEnum panel, double frameDepth, double frameThick)
     : base(m, name)
 {
     mOperationType = op;
     mPanelPosition = panel;
     mFrameDepth = frameDepth;
     mFrameThickness = frameThick;
 }
Example #10
0
 internal IfcWindowPanelProperties(DatabaseIfc db, IfcWindowPanelProperties p)
     : base(db, p)
 {
     mOperationType = p.mOperationType;
     mPanelPosition = p.mPanelPosition;
     mFrameDepth = p.mFrameDepth;
     mFrameThickness = p.mFrameThickness;
     if (p.mShapeAspectStyle > 0)
         ShapeAspectStyle = db.Factory.Duplicate(p.ShapeAspectStyle) as IfcShapeAspect;
 }
        }                                                        // optional


        /// <summary>
        /// Construct a IfcPermeableCoveringProperties with all required attributes.
        /// </summary>
        public IfcPermeableCoveringProperties(IfcGloballyUniqueId globalId, IfcPermeableCoveringOperationEnum operationType, IfcWindowPanelPositionEnum panelPosition) : base(globalId)
        {
            OperationType = operationType;
            PanelPosition = panelPosition;
        }
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             base.IfcParse(propIndex, value);
             break;
         case 1:
             base.IfcParse(propIndex, value);
             break;
         case 2:
             base.IfcParse(propIndex, value);
             break;
         case 3:
             base.IfcParse(propIndex, value);
             break;
         case 4:
             _operationType =
                 (IfcWindowPanelOperationEnum)
                 Enum.Parse(typeof (IfcWindowPanelOperationEnum), value.EnumVal, true);
             break;
         case 5:
             _panelPosition =
                 (IfcWindowPanelPositionEnum)
                 Enum.Parse(typeof (IfcWindowPanelPositionEnum), value.EnumVal, true);
             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;
     }
 }
Example #13
0
 public IfcWindowPanelProperties(DatabaseIfc db, string name, IfcWindowPanelOperationEnum op, IfcWindowPanelPositionEnum panel)
     : base(db, name)
 {
     mOperationType = op;
     mPanelPosition = panel;
 }
Example #14
0
		internal IfcWindowPanelProperties(IfcWindowPanelProperties p)
			: base(p)
		{
			mOperationType = p.mOperationType;
			mPanelPosition = p.mPanelPosition;
			mFrameDepth = p.mFrameDepth;
			mFrameThickness = p.mFrameThickness;
			mShapeAspectStyle = p.mShapeAspectStyle;
		}