Fix examples

This commit is contained in:
Thomas Krijnen
2026-01-08 09:44:00 +01:00
parent bc46a8f85b
commit 5b85a2c38b
2 changed files with 44 additions and 31 deletions
+2 -2
View File
@@ -196,9 +196,9 @@ void get_psets_s(element_properties& props, const typename Schema::IfcObjectDefi
auto rels = ob.IsDefinedBy();
for (auto& rel : rels) {
if (auto bytype = rel.template as<typename Schema::IfcRelDefinesByType>()) {
get_psets_s<Schema>(props, bytype->RelatingType());
get_psets_s<Schema>(props, bytype.RelatingType());
} else if (auto byprops = rel.template as<typename Schema::IfcRelDefinesByProperties>()) {
process_pset<Schema>(props, byprops->RelatingPropertyDefinition());
process_pset<Schema>(props, byprops.RelatingPropertyDefinition());
}
}
}