Skip to content

Commit b590747

Browse files
committed
Add version information and schema identifier to Python wrapper
1 parent 2532ba3 commit b590747

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/ifcopenshell-python/ifcopenshell/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,6 @@ def create_entity(type,*args,**kwargs):
141141
for idx, arg in attrs: e[idx] = arg
142142
return e
143143

144+
145+
version = ifcopenshell_wrapper.version()
146+
schema_identifier = ifcopenshell_wrapper.schema_identifier()

src/ifcwrap/IfcParseWrapper.i

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,12 @@ namespace IfcUtil {
200200
f->Init(s);
201201
return f;
202202
}
203+
204+
const char* const schema_identifier() {
205+
return IfcSchema::Identifier;
206+
}
207+
208+
const char* const version() {
209+
return IFCOPENSHELL_VERSION;
210+
}
203211
%}

0 commit comments

Comments
 (0)