ifcopenshell.api.layer.edit_layer

Module Contents

ifcopenshell.api.layer.edit_layer.edit_layer(file, layer=None, attributes=None) 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, optional) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

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