Today, I decided to write my step-by-step procedure on how to add a certain view on the current sheet using Dynamo. This Dynamo script must also be available to Dynamo Player with a minimum input from the user.
Assuming here is my sheet:
And the view that I would like to add to this sheet is a “WORK IN PROGRESS” stamp that I created as a legend. It should look like the one below.
For this demonstration, let’s keep this view as a “Legend” because I want to point out that whenever you are in this situation, you can’t copy the views under “Legend” from one sheet to another especially if you are aiming to have that view at the same spot to various sheets.
Here is what you’ll get if you select that view (WORK IN PROGRESS) and hit CTRL-C:
You are not allowed to copy a Legend view but there is a workaround to place it manually and have it exactly at the same position as to the other sheets, however, it will be a bit laborious task. Because of this, I decided to create a Dynamo script to automate this process, so let’s begin building the script.
Here is the first part of my script:
Here is the “Views” node where I specify from the drop-down list the view that I would like to add to the sheet.
Next, I’ll specify where on the sheet I would like the “WORK IN PROGRESS” view to appear and here are the nodes that I used:
And finally, here is the set of nodes to place the view on a sheet (which I found of the internet):
Now, it is time to connect those wires and you should have something like this:
Save the Dynamo Script and name it appropriately. I’ll call mine as “Placing View on Sheet”.
Next, open your Dynamo Player and search for this script.
And here is the little video demonstration of how the scripts work on Dynamo Player:
If you want to give it a try, please fill up a few details below and you will receive the download link.
I welcome your comments, questions, corrections and additional information relating to this article. If you know a better way, or wants to develop this further to the next level (to work in multiple sheets in one go), please leave your comment, by all means, let me know.
Have a great day!
Allan Cantos EngTech MICE
BSc. Civil Engineering / Principal Structural Technician