mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
fix issue adding layers (name is not optional in ifc)
This commit is contained in:
@@ -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")
|
||||
"""
|
||||
return file.create_entity("IfcPresentationLayerAssignment", Name=Name)
|
||||
return file.create_entity("IfcPresentationLayerAssignment", Name=Name or "Unnamed")
|
||||
|
||||
Reference in New Issue
Block a user