public void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: _relaxationValue = value.RealVal; break; case 1: _initialStress = value.RealVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }
public override void IfcParse(int propIndex, IPropertyValue value) { if (propIndex == 0 && value.Type == IfcParserType.Real) //we have a 2x2 colour with no name { _name = ifc2x2Colour; } if (_name == ifc2x2Colour) propIndex++; //move all indices along switch (propIndex) { case 0: base.IfcParse(propIndex, value); break; case 1: _red = value.RealVal; break; case 2: _green = value.RealVal; break; case 3: _blue = value.RealVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }