Catch errors in the processing of lists of shapes

This commit is contained in:
Thomas Krijnen
2011-12-29 14:45:32 +00:00
parent 508cb2679f
commit 2d30fb4615
+5 -1
View File
@@ -1,7 +1,11 @@
#include "IfcRegisterUndef.h"
#define SHAPES(T) \
if ( l->is(T::Class()) ) { \
return IfcGeom::convert((T*)l,r); \
try { \
return IfcGeom::convert((T*)l,r); \
} catch (...) { } \
Ifc::LogMessage("Error","Failed to convert:",l->entity); \
return false; \
}
#include "IfcRegisterDef.h"