From 5b711a23d3227423d79050efe1f76f68006c0d38 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Thu, 9 Sep 2021 16:03:30 +1000 Subject: [PATCH] Expose MaxId to Python --- src/ifcparse/IfcFile.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ifcparse/IfcFile.h b/src/ifcparse/IfcFile.h index 50c6897b75..1adcd1c7ae 100644 --- a/src/ifcparse/IfcFile.h +++ b/src/ifcparse/IfcFile.h @@ -245,6 +245,8 @@ public: unsigned int FreshId() { return ++MaxId; } + unsigned int getMaxId() { return MaxId; } + void recalculate_id_counter(); IfcUtil::IfcBaseClass* addEntity(IfcUtil::IfcBaseClass* entity, int id=-1);