ifcopenshell.api.resource.edit_resource#

Module Contents#

class ifcopenshell.api.resource.edit_resource.Usecase(file, resource=None, attributes=None)#

Edits the attributes of an IfcResource

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

Parameters
Returns

None

Return type

None

Example:

# Add our own crew
crew = ifcopenshell.api.run("resource.add_resource", model, ifc_class="IfcCrewResource")

# Change the name of the resource to "Zone A Crew"
ifcopenshell.api.run("resource.edit_resource", model, resource=resource, attributes={"Name": "Foo"})
execute(self)#