Revit Add-Ons: Renumber Viewports with Dynamo


From the landarchBIM website:

By Lauren Schmidt
May 31, 2017

Since I have been doing a lot more documentation work in Revit
these days, I have become significantly more interested in how
Dynamo can automate certain documentation tasks. One task that
can always drive me crazy (especially in Revit) is renumbering
viewports on sheets.

There are several different ways you can renumber viewports. I
decided to use a simple ‘pick’ method so I wouldn’t have to do
any reordering in Dynamo. This method works well with a smaller
number of views, though it might be worth using a slightly more
complex method if you have sheets full of details that need to be

If you’re interested in that, I would check out

Nate Holland’s AU2015 presentation
(Practical Design
Computation) and additional class material (with .dyn files).
He demonstrates a method where he renumbers views based on a
letter/number grid. Since the AU presentation wasn’t recorded,
he also posted a
screencast video

But when I was trying to get this simpler method to work, I was
having some issues setting the Detail Number parameter. The
standard Dynamo node, Element.SetParameterByName, was producing
very unreliable results when I tried to set the Detail Number.

Even with a fairly small set of views, the node would fail with
at least one of the viewports. So…

Read More