Apparently ifcFile.filter_by_element throws an IfcException. It would be nice if the program wouldn't crash...