fix issue adding layers (name is not optional in ifc)

This commit is contained in:
Andrej730
2024-05-15 16:03:51 +05:00
parent c2049246cd
commit 4e39fb3edd
@@ -43,4 +43,4 @@ def add_layer(file: ifcopenshell.file, Name: Optional[str] = None) -> ifcopenshe
ifcopenshell.api.run("layer.add_layer", model, Name="AI-WALL-FULL-DIMS-N") ifcopenshell.api.run("layer.add_layer", model, Name="AI-WALL-FULL-DIMS-N")
""" """
return file.create_entity("IfcPresentationLayerAssignment", Name=Name) return file.create_entity("IfcPresentationLayerAssignment", Name=Name or "Unnamed")