Dynamo scripts for renumbering schedule items

Hello everyone, I want to develop a plugin with dynamo to facilitate a job that we often use in projects. I want to be able to renumber the elements in the columns in the schedule. How is it possible to renumber the entire column after asking the column name, starting number / starting letter to be numbered?

Welcome!

First, you need to consider what a Revit schedule actually is. It’s just a consolidate view of specific elements and their listed properties. You can interact with the schedule as an object but it’s more of a template than an editable table like Excel.

So what you’re really looking to do is collect all the elements shown in a specific schedule and modify their parameter values. The one thing you need from the schedule (besides the filtered list of elements) is their order, which will be based on the sorting settings. Or you could always use your own logic for ordering the elements.

Hope that helps.

1 Like

To sort of reiterate what @Nick_Boyts, the schedule is just a view of the selected parameter values for each element. These are not just simple columns of data like excel or table. By selecting the field and changing or adding a value, you are changing that actual parameter value of that element.

To do what you are after with Dynamo, you have to select all of the elements and sort them in the order that you want, then assign numerical value to the Mark number parameter of each element in the list. Btw, you can select all of the elements in the schedule by having the view open and using select all elements in active view method.

1 Like