mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
catch missing instances one by one. do not throw away whole relation.
This commit is contained in:
committed by
Thomas Krijnen
parent
a2362668a3
commit
d005524c4c
@@ -827,8 +827,12 @@ ArgumentList::operator aggregate_of_instance::ptr() const {
|
||||
aggregate_of_instance::ptr l ( new aggregate_of_instance() );
|
||||
for (size_t i = 0; i < size_; ++i) {
|
||||
// FIXME: account for $
|
||||
IfcUtil::IfcBaseClass* entity = *list_[i];
|
||||
l->push(entity);
|
||||
try {
|
||||
IfcUtil::IfcBaseClass *entity = *list_[i];
|
||||
l->push(entity);
|
||||
} catch (IfcException e) {
|
||||
Logger::Error(e);
|
||||
}
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user