aothms/IfcOpenShell_PythonWrapper

small letters

Opened this issue · 0 comments

Hi Thomas,

I thought to mention the following ...
during some test in the regard of IfcStructuralSurfaceMember I changed ifc-files manually, run into trouble and it took me a while to find out where the problem was. IfcOpenShell only accepts entities in big letters. This might be the standard of buldingsmart, but actually I don't know. If small letters are used it gives an error if the entity is explicit used but if all entities are used in a loop the entity is left out and no error is presented. Find a simple example here:
http://forum.freecadweb.org/download/file.php?id=7557

>>> import ifc_wrapper
>>> i=ifc_wrapper.open("/home/hugo/Desktop/wall-small.ifc")
>>> ss=ifc_wrapper.create_shape(i.by_id(147))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/ifc_wrapper.py", line 148, in by_id
    def by_id(self, *args): return _ifc_wrapper.file_by_id(self, *args)
RuntimeError: Entity not found
>>>