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: 
					_panelDepth = value.RealVal;
					return;
				case 5: 
                    _panelOperation = (IfcDoorPanelOperationEnum) System.Enum.Parse(typeof (IfcDoorPanelOperationEnum), value.EnumVal, true);
					return;
				case 6: 
					_panelWidth = value.RealVal;
					return;
				case 7: 
                    _panelPosition = (IfcDoorPanelPositionEnum) System.Enum.Parse(typeof (IfcDoorPanelPositionEnum), value.EnumVal, true);
					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 IfcDoorPanelProperties(IfcGloballyUniqueId globalId, IfcOwnerHistory ownerHistory, IfcLabel name, IfcText description, IfcPositiveLengthMeasure panelDepth, IfcDoorPanelOperationEnum panelOperation, IfcNormalisedRatioMeasure panelWidth, IfcDoorPanelPositionEnum panelPosition, IfcShapeAspect shapeAspectStyle) : base(globalId, ownerHistory, name, description)
 {
     PanelDepth       = panelDepth;
     PanelOperation   = panelOperation;
     PanelWidth       = panelWidth;
     PanelPosition    = panelPosition;
     ShapeAspectStyle = shapeAspectStyle;
 }
Пример #3
0
 public IfcDoorPanelProperties(IfcGloballyUniqueId __GlobalId, IfcOwnerHistory __OwnerHistory, IfcLabel?__Name, IfcText?__Description, IfcPositiveLengthMeasure?__PanelDepth, IfcDoorPanelOperationEnum __PanelOperation, IfcNormalisedRatioMeasure?__PanelWidth, IfcDoorPanelPositionEnum __PanelPosition, IfcShapeAspect __ShapeAspectStyle)
     : base(__GlobalId, __OwnerHistory, __Name, __Description)
 {
     this._PanelDepth       = __PanelDepth;
     this._PanelOperation   = __PanelOperation;
     this._PanelWidth       = __PanelWidth;
     this._PanelPosition    = __PanelPosition;
     this._ShapeAspectStyle = __ShapeAspectStyle;
 }
Пример #4
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:
                _panelDepth = value.RealVal;
                break;

            case 5:
                _panelOperation =
                    (IfcDoorPanelOperationEnum)Enum.Parse(typeof(IfcDoorPanelOperationEnum), value.EnumVal, true);
                break;

            case 6:
                _panelWidth = value.RealVal;
                break;

            case 7:
                _panelPosition =
                    (IfcDoorPanelPositionEnum)Enum.Parse(typeof(IfcDoorPanelPositionEnum), value.EnumVal, true);
                break;

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

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
 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:
             _panelDepth = value.RealVal;
             break;
         case 5:
             _panelOperation =
                 (IfcDoorPanelOperationEnum) Enum.Parse(typeof (IfcDoorPanelOperationEnum), value.EnumVal, true);
             break;
         case 6:
             _panelWidth = value.RealVal;
             break;
         case 7:
             _panelPosition =
                 (IfcDoorPanelPositionEnum) Enum.Parse(typeof (IfcDoorPanelPositionEnum), value.EnumVal, true);
             break;
         case 8:
             _shapeAspectStyle = (IfcShapeAspect) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }
Пример #6
0
		internal IfcDoorPanelProperties(IfcDoorPanelProperties p) : base(p)
		{
			mPanelDepth = p.mPanelDepth;
			mOperationType = p.mOperationType;
			mPanelWidth = p.mPanelWidth;
			mPanelPosition = p.mPanelPosition;
			mShapeAspectStyle = p.mShapeAspectStyle;
		}
Пример #7
0
        }                                                        // optional


        /// <summary>
        /// Construct a IfcDoorPanelProperties with all required attributes.
        /// </summary>
        public IfcDoorPanelProperties(IfcGloballyUniqueId globalId, IfcDoorPanelOperationEnum panelOperation, IfcDoorPanelPositionEnum panelPosition) : base(globalId)
        {
            PanelOperation = panelOperation;
            PanelPosition  = panelPosition;
        }
Пример #8
0
		internal IfcDoorPanelProperties(DatabaseIfc db, IfcDoorPanelProperties p) : base(db, p)
		{
			mPanelDepth = p.mPanelDepth;
			mOperationType = p.mOperationType;
			mPanelWidth = p.mPanelWidth;
			mPanelPosition = p.mPanelPosition;
			if (p.mShapeAspectStyle > 0)
				ShapeAspectStyle = db.Factory.Duplicate(p.ShapeAspectStyle) as IfcShapeAspect;
		}