a) Applying a scope box to views placed on a specific set of sheets. Cropping these Views. Turning the Crop Regions off on these views.
b) Assigning a viewport type to these views (to remove view titles).
c) Aligning the viewports on these sheets using a Template Sheet as a reference. The node I’m using for this function is the “Tool.AlignViewsFromTemplateSheet” from the SteamNodes package.
The script is (almost) working perfectly…
Before running the script my project looks like this (the top left sheet “A1.003 - GROUND FLOOR PLAN” is the 'Template Sheet with the viewport placed in the desired location):
Yes, they force the start and stop of the transaction in Revit which is modifying the viewport type and crop / scope box settings. It is what commits these changes before continuing on and should resolve your issues
Revit does all of it’s actions using Transaction in the behind the scenes code, and a Dynamo session typically only uses ONE Transaction per run. This means that sometimes grpahs like yours that rely on things being done in an order don’t always work UNLESS you force Dynamo to use Commit (Tansaction.End) and Start (Transaction.Start) a new one. You may also still need the Passthrough to wait on the elements to give the nodes, but they won’t do it on thier own.