mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Add version information and schema identifier to Python wrapper
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
%}
|
||||
Reference in New Issue
Block a user