File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments