From b590747db9e0a2884f07e78c99575cf86c765687 Mon Sep 17 00:00:00 2001 From: aothms Date: Thu, 10 Sep 2015 15:53:59 +0200 Subject: [PATCH] Add version information and schema identifier to Python wrapper --- src/ifcopenshell-python/ifcopenshell/__init__.py | 3 +++ src/ifcwrap/IfcParseWrapper.i | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index 4d9f8b4d34..388581942b 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -141,3 +141,6 @@ def create_entity(type,*args,**kwargs): for idx, arg in attrs: e[idx] = arg return e + +version = ifcopenshell_wrapper.version() +schema_identifier = ifcopenshell_wrapper.schema_identifier() diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index a4ebb234bc..23955f190f 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -200,4 +200,12 @@ namespace IfcUtil { f->Init(s); return f; } + + const char* const schema_identifier() { + return IfcSchema::Identifier; + } + + const char* const version() { + return IFCOPENSHELL_VERSION; + } %} \ No newline at end of file