Use this script to delete Viewport types in the model. These are also known as your “View Titles” on Sheets. Arguably, they should be named as “View Titles” to correctly describe how they are used on a Sheet, though that is another argument for another time. You can add that one to the list of “Oddly named things in Revit”.
Below is an example of a Viewport Type
![]()
You can confirm the Revit category by selecting the View Title and checking the Properties.
![]()
For experienced users, these are one of the elements that are extremely annoying to clean up. While Purging is one method, sometimes Revit just doesn’t want to cooperate, even if the Viewport type is not in use.
Use this script to force delete those viewport types.
Before using this script:
Make sure to do your due diligence by checking that the Viewport type you want to delete is not being used in the model. Unfortunately you cannot use “select all in entire project” on View Titles nor schedules. This is only possible by manual checking (Dynamo Script is in the works).
How to use this script:
- Download and save the script to your Dynamo library.
- Open Dynamo in your active model and open the script.
- Run the script once to find all the Viewport types in your model.
- Select the Viewport you would like to delete by moving the slider until the correct number indicates your selection.
- Switch the Boolean to True to allow deleting the Viewport.
- Run once more to delete the Viewport type.
- Switch the Boolean to False and Run the script again to check that the Viewport is deleted.
- Repeat steps 3 to 7 until you have deleted all the Viewports that you wish to clean up.
*Clicking this link will bring you to the download page.
Saved in Dynamo Version:
2.X
Dynamo Packages Required:
archi-lab.net, Clockwork for Dynamo, SteamNodes
0 Comments