@@ -58,7 +58,7 @@ std::vector<IfcSchema::IfcProduct> mapping::products_represented_by(const IfcSch
5858
5959 // IfcProductRepresentation also lacks the INVERSE relation to IfcProduct
6060 // Let's find the IfcProducts that reference the IfcProductRepresentation anyway
61- auto invs = prodrep.data ()-> file ()->getInverse (prodrep.id (), &IfcSchema::IfcProduct::Class (), -1 );
61+ auto invs = prodrep.file ()->getInverse (prodrep.id (), &IfcSchema::IfcProduct::Class (), -1 );
6262 for (auto & inv : invs) {
6363 products.push_back (inv.as <IfcSchema::IfcProduct>());
6464 }
@@ -91,12 +91,12 @@ std::vector<IfcSchema::IfcProduct> mapping::products_represented_by(const IfcSch
9191 continue ;
9292 }
9393
94- auto reps = item.data ()-> file ()->getInverse (item.id (), (&IfcSchema::IfcRepresentation::Class ()), -1 );
94+ auto reps = item.file ()->getInverse (item.id (), (&IfcSchema::IfcRepresentation::Class ()), -1 );
9595 for (auto & rep : reps) {
9696 if (rep.as <IfcSchema::IfcRepresentation>().Items ().size () != 1 ) continue ;
9797 std::vector<IfcSchema::IfcProductRepresentation> prodreps_mapped = rep.as <IfcSchema::IfcRepresentation>().OfProductRepresentation ();
9898 for (auto & prm : prodreps_mapped) {
99- auto ps = prm.data ()-> file ()->getInverse (prm.id (), (&IfcSchema::IfcProduct::Class ()), -1 );
99+ auto ps = prm.file ()->getInverse (prm.id (), (&IfcSchema::IfcProduct::Class ()), -1 );
100100 for (auto & p : ps) {
101101 products.push_back (p.as <IfcSchema::IfcProduct>());
102102 }
@@ -783,8 +783,8 @@ express::Base mapping::get_decomposing_entity(const express::Base& inst, bool in
783783
784784 /* Parent decompositions to the RelatingObject */
785785 if (!parent) {
786- std::vector<express::Entity> parents = product.data ()-> file ()->getInverse (product.id (), (&IfcSchema::IfcRelAggregates::Class ()), -1 );
787- auto nests = product.data ()-> file ()->getInverse (product.id (), (&IfcSchema::IfcRelNests::Class ()), -1 );
786+ std::vector<express::Entity> parents = product.file ()->getInverse (product.id (), (&IfcSchema::IfcRelAggregates::Class ()), -1 );
787+ auto nests = product.file ()->getInverse (product.id (), (&IfcSchema::IfcRelNests::Class ()), -1 );
788788 parents.insert (parents.end (), nests.begin (), nests.end ());
789789 for (auto it = parents.begin (); it != parents.end (); ++it) {
790790 IfcSchema::IfcRelDecomposes decompose = (*it).as <IfcSchema::IfcRelDecomposes>();
0 commit comments