mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +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() );
|
aggregate_of_instance::ptr l ( new aggregate_of_instance() );
|
||||||
for (size_t i = 0; i < size_; ++i) {
|
for (size_t i = 0; i < size_; ++i) {
|
||||||
// FIXME: account for $
|
// FIXME: account for $
|
||||||
IfcUtil::IfcBaseClass* entity = *list_[i];
|
try {
|
||||||
l->push(entity);
|
IfcUtil::IfcBaseClass *entity = *list_[i];
|
||||||
|
l->push(entity);
|
||||||
|
} catch (IfcException e) {
|
||||||
|
Logger::Error(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return l;
|
return l;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user