We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c07db commit 39dafceCopy full SHA for 39dafce
1 file changed
src/ifcparse/IfcParse.cpp
@@ -616,6 +616,7 @@ bool Ifc::Init(IfcParse::File* f) {
616
units = unit_assignment->Units();
617
}
618
if ( ! units ) return true;
619
+ try {
620
for ( IfcUtil::IfcAbstractSelect::it it = units->begin(); it != units->end(); ++ it ) {
621
const IfcUtil::IfcAbstractSelect::ptr base = *it;
622
Ifc2x3::IfcSIUnit::ptr unit = Ifc2x3::IfcSIUnit::ptr();
@@ -646,6 +647,9 @@ bool Ifc::Init(IfcParse::File* f) {
646
647
648
649
650
+ } catch ( IfcException ex ) {
651
+ Ifc::LogMessage("Error",ex.what());
652
+ }
653
return true;
654
655
0 commit comments