internal static void parseFields(IfcWall w, List <string> arrFields, ref int ipos, Schema schema) { IfcBuildingElement.parseFields(w, arrFields, ref ipos); if (schema != Schema.IFC2x3) { string str = arrFields[ipos++]; if (str[0] == '.') { try { w.mPredefinedType = (IfcWallTypeEnum)Enum.Parse(typeof(IfcWallTypeEnum), str.Substring(1, str.Length - 2)); } catch (Exception) { } } } }
internal static void parseFields(IfcWindow w, List <string> arrFields, ref int ipos, Schema schema) { IfcBuildingElement.parseFields(w, arrFields, ref ipos); w.mOverallHeight = ParserSTEP.ParseDouble(arrFields[ipos++]); w.mOverallWidth = ParserSTEP.ParseDouble(arrFields[ipos++]); if (schema != Schema.IFC2x3) { string s = arrFields[ipos++]; if (s.StartsWith(".")) { w.mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", "")); } s = arrFields[ipos++]; if (s.StartsWith(".")) { w.mPredefinedType = (IfcWindowTypeEnum)Enum.Parse(typeof(IfcWindowTypeEnum), s.Replace(".", "")); } w.mUserDefinedPartitioningType = arrFields[ipos++]; } }
protected IfcBuildingElement(DatabaseIfc db, IfcBuildingElement e, DuplicateOptions options) : base(db, e, options) { }
protected IfcBuildingElement(DatabaseIfc db, IfcBuildingElement e, IfcOwnerHistory ownerHistory, bool downStream) : base(db, e, ownerHistory, downStream) { }
protected static void parseFields(IfcBuildingElement e, List<string> arrFields, ref int ipos) { IfcElement.parseFields(e, arrFields, ref ipos); }
protected IfcBuildingElement(IfcBuildingElement e) : base(e) { }
protected IfcBuildingElement(DatabaseIfc db, IfcBuildingElement e) : base(db, e,false) { }