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: _relatingObject = (IfcObjectDefinition)value.EntityVal; break; case 5: _relatedObjects.Add((IfcObjectDefinition)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: _relatedObjects.Add((IfcObjectDefinition)value.EntityVal); break; case 5: _relatedObjectsType = (IfcObjectType)Enum.Parse(typeof(IfcObjectType), value.EnumVal, true); break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }