mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
- Throw and catch IfcExceptions while parsing
- Fix issues with left-handed IfcCartesianTransformationOperator3D [fixes #3405491 Issues with MappingTarget of IfcMappedItem]
This commit is contained in:
@@ -568,8 +568,14 @@ bool Ifc::Init(IfcParse::File* f) {
|
||||
if ( log1 ) std::cout << "Scanning file..." << std::endl;
|
||||
while ( true ) {
|
||||
if ( currentId ) {
|
||||
e = new Entity(currentId,tokens);
|
||||
entity = Ifc2x3::SchemaEntity(e);
|
||||
try {
|
||||
e = new Entity(currentId,tokens);
|
||||
entity = Ifc2x3::SchemaEntity(e);
|
||||
} catch (IfcException ex) {
|
||||
currentId = 0;
|
||||
Ifc::LogMessage("Error",ex.what());
|
||||
continue;
|
||||
}
|
||||
if ( log1 && !((++x)%1000) ) std::cout << "\r#" << currentId << " " << std::flush;
|
||||
Ifc2x3::Type::Enum ty = entity->type();
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user