ifcopenshell.api.layer.edit_layer

Module Contents

ifcopenshell.api.layer.edit_layer.edit_layer(file: ifcopenshell.file, layer: ifcopenshell.entity_instance, attributes: dict[str, Any]) None

Edits the attributes of an IfcPresentationLayerAssignment

For more information about the attributes and data types of an IfcPresentationLayerAssignment, consult the IFC documentation.

Parameters:
  • layer (ifcopenshell.entity_instance) – The IfcPresentationLayerAssignment entity you want to edit

  • attributes (dict) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

layer = ifcopenshell.api.layer.add_layer(model, name="AI-WALL")
ifcopenshell.api.layer.edit_layer(model,
    layer=layer, attributes={"Description": "All walls, based on the AIA standard."})