public override void IfcParse(int propIndex, IPropertyValue value) { switch (propIndex) { case 0: case 1: case 2: case 3: case 4: base.IfcParse(propIndex, value); break; case 5: _predefinedType = (IfcAnalysisModelTypeEnum)Enum.Parse(typeof(IfcAnalysisModelTypeEnum), value.EnumVal, true); break; case 6: _orientationOf2DPlane = (IfcAxis2Placement3D)value.EntityVal; break; case 7: if (_loadedBy == null) { _loadedBy = new XbimSet <IfcStructuralLoadGroup>(this); } _loadedBy.Add((IfcStructuralLoadGroup)value.EntityVal); break; case 8: _hasResults = (IfcStructuralResultGroup)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: case 4: base.IfcParse(propIndex, value); break; case 5: _predefinedType = (IfcAnalysisModelTypeEnum) Enum.Parse(typeof (IfcAnalysisModelTypeEnum), value.EnumVal, true); break; case 6: _orientationOf2DPlane = (IfcAxis2Placement3D) value.EntityVal; break; case 7: if (_loadedBy == null) _loadedBy = new XbimSet<IfcStructuralLoadGroup>(this); _loadedBy.Add((IfcStructuralLoadGroup) value.EntityVal); break; case 8: _hasResults = (IfcStructuralResultGroup) value.EntityVal; break; default: this.HandleUnexpectedAttribute(propIndex, value); break; } }