示例#1
0
        public override void IfcParse(int propIndex, IPropertyValue value)
        {
            switch (propIndex)
            {
            case 0:
                base.IfcParse(propIndex, value);
                break;

            case 1:
                _curveFont = (IfcCurveFontOrScaledCurveFontSelect)value.EntityVal;
                break;

            case 2:
                _curveWidth = (IfcSizeSelect)value.EntityVal;
                break;

            case 3:
                _curveColour = (IfcColour)value.EntityVal;
                break;

            default:
                this.HandleUnexpectedAttribute(propIndex, value); break;
            }
        }
示例#2
0
		internal IfcCurveStyle(DatabaseIfc m, string name, IfcCurveFontOrScaledCurveFontSelect font, IfcSizeSelect width, IfcColour col)
			: base(m, name) { if (font != null) mCurveFont = font.Index; if (width != null) mCurveWidth = width.ToString(); if (col != null) mCurveColour = col.Index; }
示例#3
0
 public override void IfcParse(int propIndex, IPropertyValue value)
 {
     switch (propIndex)
     {
         case 0:
             base.IfcParse(propIndex, value);
             break;
         case 1:
             _curveFont = (IfcCurveFontOrScaledCurveFontSelect) value.EntityVal;
             break;
         case 2:
             _curveWidth = (IfcSizeSelect) value.EntityVal;
             break;
         case 3:
             _curveColour = (IfcColour) value.EntityVal;
             break;
         default:
             this.HandleUnexpectedAttribute(propIndex, value); break;
     }
 }