Default to 2x3 for older schemas

This commit is contained in:
Thomas Krijnen
2018-03-21 17:18:38 +01:00
parent 5082fe8be4
commit 0cbe984c71
+5
View File
@@ -1328,6 +1328,11 @@ void IfcFile::initialize_(IfcParse::IfcSpfStream* s) {
} catch (const IfcParse::IfcException& e) {
Logger::Error(e);
}
if (schema_ == 0 && schemas.front().substr(0, 4) == "IFC2") {
Logger::Message(Logger::LOG_ERROR, schemas.front() + " not supported, using IFC2X3 instead");
schema_ = IfcParse::schema_by_name("IFC2X3");
}
}
if (schema_ == 0) {