I have a current Dynamo script that creates layouts and viewports based on a keyplan layout to my liking, now the next problem is that we don’t want more than roughly 5 or so layouts in a single .dwg to allow multiple team members to work on sheets at the same time. Right now, my script creates all of these views in the same .dwg. I have started working on a separate script that eventually I want to build back into the layout/viewport creation one to make it all happen at once.
But this other script is where I am running into issues. I have gotten far enough to dynamically determine the new file names in a list based on the layouts generated in the first script and then using the Camber package I can create .dwg’s out of that list of new file names. Any ideas on how to copy out the viewports/layouts in the overall .dwg file into these separated out .dwg’s? Also worth note, I am trying to group multiple layouts into a single .dwg. My team would not be thrilled to learn this new script requires a single .dwg per layout. Again, 5 is the rough number of layouts per .dwg we try to use.
Scripts and .dwg attached. Thank you as always!
LayoutCreation_2025_V2.dyn (95.7 KB)
Layout Interval External Save.dyn (32.5 KB)
PV.C05.00.dwg (1.6 MB)
Another idea I had to solve this problem, and others outside of this script, is a way to delete an existing layout. I could make copies of this main file and then delete out the layouts that do not apply to that .dwg file.
Do we think the following primer resource would be a good idea to look into for this use case?Zero-Touch Case Study - Grid Node | Dynamo
Another way I have found to transfer over layouts and their associated viewports, xref’s, etc is to use the Design Center. Is there a way to access that through Dynamo?