From 1314209a895ad01fd4ffca49173e59ebdd1958eb Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Wed, 3 Apr 2019 14:40:09 +0200 Subject: [PATCH] Map empty aggregate to empty tuple in python --- src/ifcwrap/utils/typemaps_out.i | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ifcwrap/utils/typemaps_out.i b/src/ifcwrap/utils/typemaps_out.i index fbb12ed7da..651a8ab1d7 100644 --- a/src/ifcwrap/utils/typemaps_out.i +++ b/src/ifcwrap/utils/typemaps_out.i @@ -98,6 +98,9 @@ IfcEntityListList::ptr v = arg; $result = pythonize(v); break; } + case IfcUtil::Argument_EMPTY_AGGREGATE: { + $result = PyTuple_New(0); + break; } case IfcUtil::Argument_UNKNOWN: default: SWIG_exception(SWIG_RuntimeError,"Unknown attribute type");