Fix to IfcHierarchyHelper.cpp (#1476)

This commit is contained in:
ahladik
2021-05-21 13:26:40 +02:00
committed by GitHub
parent 97244d1919
commit a0dad0802e
+4 -4
View File
@@ -159,7 +159,7 @@ typename Schema::IfcSite* IfcHierarchyHelper<Schema>::addSite(typename Schema::I
boost::none, boost::none, boost::none, boost::none, 0); boost::none, boost::none, boost::none, boost::none, 0);
addEntity(site); addEntity(site);
addRelatedObject<typename Schema::IfcRelAggregates>(proj, site); addRelatedObject<typename Schema::IfcRelAggregates>(proj, site, owner_hist);
return site; return site;
} }
@@ -182,7 +182,7 @@ typename Schema::IfcBuilding* IfcHierarchyHelper<Schema>::addBuilding(typename S
boost::none, boost::none, 0); boost::none, boost::none, 0);
addEntity(building); addEntity(building);
addRelatedObject<typename Schema::IfcRelAggregates>(site, building); addRelatedObject<typename Schema::IfcRelAggregates>(site, building, owner_hist);
relatePlacements(site, building); relatePlacements(site, building);
return building; return building;
@@ -209,7 +209,7 @@ typename Schema::IfcBuildingStorey* IfcHierarchyHelper<Schema>::addBuildingStore
Schema::IfcElementCompositionEnum::IfcElementComposition_ELEMENT, boost::none); Schema::IfcElementCompositionEnum::IfcElementComposition_ELEMENT, boost::none);
addEntity(storey); addEntity(storey);
addRelatedObject<typename Schema::IfcRelAggregates>(building, storey); addRelatedObject<typename Schema::IfcRelAggregates>(building, storey, owner_hist);
relatePlacements(building, storey); relatePlacements(building, storey);
return storey; return storey;
@@ -237,7 +237,7 @@ typename Schema::IfcBuildingStorey* IfcHierarchyHelper<Schema>::addBuildingProdu
const bool is_decomposition = product->Decomposes()->size() > 0; const bool is_decomposition = product->Decomposes()->size() > 0;
if (!is_decomposition) { if (!is_decomposition) {
addRelatedObject<typename Schema::IfcRelContainedInSpatialStructure>(storey, product); addRelatedObject<typename Schema::IfcRelContainedInSpatialStructure>(storey, product, owner_hist);
relatePlacements(storey, product); relatePlacements(storey, product);
} }
return storey; return storey;