mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +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
|
for idx, arg in attrs: e[idx] = arg
|
||||||
return e
|
return e
|
||||||
|
|
||||||
|
|
||||||
|
version = ifcopenshell_wrapper.version()
|
||||||
|
schema_identifier = ifcopenshell_wrapper.schema_identifier()
|
||||||
|
|||||||
@@ -200,4 +200,12 @@ namespace IfcUtil {
|
|||||||
f->Init(s);
|
f->Init(s);
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* const schema_identifier() {
|
||||||
|
return IfcSchema::Identifier;
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* const version() {
|
||||||
|
return IFCOPENSHELL_VERSION;
|
||||||
|
}
|
||||||
%}
|
%}
|
||||||
Reference in New Issue
Block a user