ifcopenshell.file.from_string()

This commit is contained in:
Thomas Krijnen
2017-08-22 10:16:07 +02:00
parent 08522c9fd7
commit 430ab54602
4 changed files with 6 additions and 37 deletions
@@ -59,3 +59,6 @@ class file(object):
return self.wrapped_data.remove(inst.wrapped_data)
def __iter__(self):
return iter(self[id] for id in self.wrapped_data.entity_names())
@staticmethod
def from_string(s):
return file(ifcopenshell_wrapper.read(s))