diff --git a/src/ifcopenshell-python/ifcopenshell/__init__.py b/src/ifcopenshell-python/ifcopenshell/__init__.py index db5f91519b..0e79c4f913 100644 --- a/src/ifcopenshell-python/ifcopenshell/__init__.py +++ b/src/ifcopenshell-python/ifcopenshell/__init__.py @@ -63,7 +63,7 @@ def open(fn): raise IOError("Unable to open file for reading") -def create_entity(type, *args, schema='IFC4', **kwargs): +def create_entity(type, schema='IFC4', *args, **kwargs): e = entity_instance((schema, type)) attrs = list(enumerate(args)) + [(e.wrapped_data.get_argument_index(name), arg) for name, arg in kwargs.items()] for idx, arg in attrs: