Today, I decided to write my step-by-step procedure on 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 specially 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 work around 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 my set of nodes to place the view on a sheet:
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 works on Dynamo Player:
Here is the link if you want to give it a try: Placing View on Sheet
Have a great day!
Allan Cantos EngTech MICE
BSc. Civil Engineering / Principal Structural Technician