While it is generally sufficient to store additional data about model elements directly within Layer using Fields, there are cases in which it makes sense to write data directly back into the Revit Model. Using Automations and the Revit Add-In, you can leverage information that you have collected within Layer Fields to update Parameters for your Revit Objects.
đź’ˇFor supported Revit parameters read this section of our Model FAQs.
To write a value to a Revit Parameter, set up an automation that has an action of type Write to a Revit Parameter.
To set up an automation, navigate to the Automations heading in the left sidenav and click Create New Automation.
Trigger Setup
Set up the Trigger according to when you would like the Revit Parameters updated. A typical workflow is to create a trigger of type When an Element Is Created in a Category, then select a Revit Model category as the category to watch for updated elements. You can then select field(s) to watch for changes on based on which fields you wish to write back to a Revit Parameter.
Action Setup
Set up the Action as an Update a Revit Parameter action. This action queues up values to be written to Revit Parameters when the automation is run based on the trigger. First, select the Revit Parameter to write to, then select the field from the triggering element is write as the parameter value.
<aside> đź’ˇ Currently, Layer supports writing to any Instance, Shared or Project Parameter. The parameters that are NOT supported are Type Parameters and Family Parameters.
</aside>
After selecting the Value to Set from the Trigger Element, you will be shown an option indicating how many elements currently in your project will be effected by this automation. Leaving the checkbox selected will run the automation on all existing elements that match the criteria, thus effectively “back-filling” values to the Revit Parameters. All future changes will be handled by the automation.
When the Update a Revit Parameter Automation is run, parameter values are not immediately written back to the Revit model. They are queued up to be written to the model using the Revit Add-In.