mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-12 02:23:34 +00:00
Python wrapper geometry handling
This commit is contained in:
@@ -60,8 +60,11 @@ from .entity_instance import entity_instance
|
||||
|
||||
|
||||
def open(fn):
|
||||
return file(ifcopenshell_wrapper.open(os.path.abspath(fn)))
|
||||
|
||||
f = ifcopenshell_wrapper.open(os.path.abspath(fn))
|
||||
if f.good():
|
||||
return file(f)
|
||||
else:
|
||||
raise IOError("Unable to open file for reading")
|
||||
|
||||
def create_entity(type, *args, **kwargs):
|
||||
e = entity_instance(type)
|
||||
|
||||
Reference in New Issue
Block a user