Update 2021.08.12: This workflow has been revised to use current workflows. The description below is still available as "For reference only."
If setting viewport centers is of interest to you, please check out the new workflow here.
On Friday I posted a quick video demonstrating how to align views based on a “host” view in Revit with Dynamo. That video can be found below.
Initially, I didn’t realize I would have such a positive reaction to this video so now I will do a better job describing what it does exactly.
I had a user at my firm apporoach me and ask the following question, “Is there an easy way to align all of my area plans to the same postion as my first area plan? There are six total across six sheets.”
Instantly I remembered some posts regarding “box center” from Julian Benoit, so I fired up Dynamo and began to work through this scenario.
Considering the individual used the phrase “same postion as my first area plan”, I knew I had to make the selection specific rather than collecting all viewports and hoping for the best. About a month ago I posted an isolated pick selection node in Rhythm and I decided this is perfect for this scenario. (Along with List.Deconstruct)
After the user runs the Dynamo graph they are then prompted to select viewports and hit escape when done. Once that is completed Dynamo,
- Deconstructs the list into the first “parent” viewport and the rest of the “children” viewports.
- Gets the box center of the parent viewport.
- Cycles that location equal to the amount of children viewports.
- Finally, sets the box center of the children viewports.
Note: the link to this graph has been removed as the demo above is out of date. I left it intact for reference reasons.
As always, let me know if you have any question and have fun!
-john