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; } }
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; }
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; } }