Skip to content

Commit 00c70fa

Browse files
committed
IfcOpenHouse fixes for IFC4
1 parent d34c3b4 commit 00c70fa

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/examples/IfcOpenHouse.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,11 @@ int main() {
270270
IfcSchema::IfcProperty::list::ptr properties(new IfcSchema::IfcProperty::list);
271271
properties->push(new IfcSchema::IfcPropertySingleValue("TotalArea", null, new IfcSchema::IfcAreaMeasure(site_area), 0));
272272
IfcSchema::IfcPropertySet* pset = new IfcSchema::IfcPropertySet(guid(), file.getSingle<IfcSchema::IfcOwnerHistory>(), S("Pset_SiteCommon"), null, properties);
273+
#ifdef USE_IFC4
274+
IfcSchema::IfcObjectDefinition::list::ptr related_objs(new IfcSchema::IfcObjectDefinition::list);
275+
#else
273276
IfcSchema::IfcObject::list::ptr related_objs(new IfcSchema::IfcObject::list);
277+
#endif
274278
related_objs->push(file.getSingle<IfcSchema::IfcSite>());
275279
IfcSchema::IfcRelDefinesByProperties* site_prop = new IfcSchema::IfcRelDefinesByProperties(guid(), file.getSingle<IfcSchema::IfcOwnerHistory>(), null, null, related_objs, pset);
276280
file.addEntity(site_prop);

0 commit comments

Comments
 (0)