From 4dcc1b57189628d69149f98e98993d1382543b0b Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Tue, 19 Dec 2023 12:40:38 +0100 Subject: [PATCH] 4x3_add2 py wrapper --- src/ifcwrap/IfcGeomWrapper.i | 7 ++++++- src/ifcwrap/IfcPython.i | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index 90e066851b..35ede96064 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -606,7 +606,12 @@ struct ShapeRTTI : public boost::static_visitor return helper_fn_create_shape(geometry_library, settings, instance, representation); } #endif - + #ifdef HAS_SCHEMA_4x3_add2 + if (schema_name == "IFC4X3_ADD2") { + return helper_fn_create_shape(geometry_library, settings, instance, representation); + } + #endif + throw IfcParse::IfcException("No geometry support for " + schema_name); } %} diff --git a/src/ifcwrap/IfcPython.i b/src/ifcwrap/IfcPython.i index 5ed90d6456..f6975cca2c 100644 --- a/src/ifcwrap/IfcPython.i +++ b/src/ifcwrap/IfcPython.i @@ -126,6 +126,9 @@ #endif #ifdef HAS_SCHEMA_4x3_add1 #include "../ifcparse/Ifc4x3_add1.h" +#endif +#ifdef HAS_SCHEMA_4x3_add2 +#include "../ifcparse/Ifc4x3_add2.h" #endif #include "../ifcparse/IfcBaseClass.h" @@ -203,6 +206,9 @@ #ifdef HAS_SCHEMA_4x3_add1 #include "../ifcparse/Ifc4x3_add1.h" #endif +#ifdef HAS_SCHEMA_4x3_add2 + #include "../ifcparse/Ifc4x3_add2.h" +#endif #include "../ifcparse/IfcBaseClass.h" #include "../ifcparse/IfcFile.h"