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