Skip to content

Commit 8067d0c

Browse files
committed
IfcParseExample to support IFC4 after 2948d08
1 parent a70b7e3 commit 8067d0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/examples/IfcParseExamples.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,16 +255,16 @@ int main(int argc, char** argv) {
255255
// we need to cast them to IfcWindows. Since these properties
256256
// are optional we need to make sure the properties are
257257
// defined for the window in question before accessing them.
258-
Ifc2x3::IfcBuildingElement::list::ptr elements = file.instances_by_type<Ifc2x3::IfcBuildingElement>();
258+
IfcSchema::IfcBuildingElement::list::ptr elements = file.instances_by_type<IfcSchema::IfcBuildingElement>();
259259

260260
std::cout << "Found " << elements->size() << " elements in " << argv[1] << ":" << std::endl;
261261

262262
for (auto it = elements->begin(); it != elements->end(); ++it) {
263263
const auto* element = *it;
264264
std::cout << element->data().toString() << std::endl;
265265

266-
const Ifc2x3::IfcWindow* window;
267-
if ((window = element->as<Ifc2x3::IfcWindow>()) != 0) {
266+
const IfcSchema::IfcWindow* window;
267+
if ((window = element->as<IfcSchema::IfcWindow>()) != 0) {
268268
if (window->OverallWidth() && window->OverallHeight()) {
269269
const double area = *window->OverallWidth() * *window->OverallHeight();
270270
std::cout << "The area of this window is " << area << std::endl;

0 commit comments

Comments
 (0)