mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +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")
|
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