ifcopenshell.api.profile.edit_profile

Module Contents

ifcopenshell.api.profile.edit_profile.edit_profile(file, profile=None, attributes=None) None

Edits the attributes of an IfcProfileDef

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

Parameters:
  • profile (ifcopenshell.entity_instance) – The IfcProfileDef entity you want to edit

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

Returns:

None

Return type:

None

Example:

circle = ifcopenshell.api.run("profile.add_parameterized_profile", model,
    ifc_class="IfcCircleProfileDef")
circle = 1.

ifcopenshell.api.run("profile.edit_profile", model,
    profile=circle, attributes={"ProfileName": "1000mm Dia"})