This commit is contained in:
Andrej730
2025-01-22 11:50:36 +05:00
parent 06f25b9846
commit a774a75509
7 changed files with 26 additions and 22 deletions
@@ -84,7 +84,9 @@ def add_layer(
settings = {"layer_set": layer_set, "material": material}
layers = list(settings["layer_set"].MaterialLayers or [])
layer = file.create_entity("IfcMaterialLayer", **{"Material": settings["material"], "LayerThickness": 0.1 / unit_scale})
layer = file.create_entity(
"IfcMaterialLayer", **{"Material": settings["material"], "LayerThickness": 0.1 / unit_scale}
)
layers.append(layer)
settings["layer_set"].MaterialLayers = layers
return layer