Delete Viewport Type - Using Dynamo with DataShape UI

Using Dynamo on Deleting Viewport Type - with DataShape UI
If using Revit OOTB purge can’t select the unused view port type or even selecting/deleting them using Ideate Explorer you may try this Graphs.

This Graphs get all Viewport Types (archilab) and with the help of Data Shapes UI, a dialog with check box pop-up where you can select viewport you want to delete.

(if prompt with Deleting all open views in a project is not allowed this is the default viewport when you are placing views on sheet, I used pyRevit - Wipe Unpurgable Viewport Types but you can also re-name this viewport type and apply your desired annotation symbol so this become your default view port when placing view on sheet.)

2 Likes

Thanks for sharing this code. Those orphaned viewport types are a pesky issue. I attempted to implement the above code in R2025.4.

I run into the problem, that I don’t get the selection checkmarks.

I added “Watch” nodes to find out where the issue may be. Could someone tell me how this works and what I may have done wrong? Is it possible the newer versions of the nodes work differently?

Delete Viewport Types.dyn (31.0 KB)

Hi @enkus

try to remove this

1 Like

Thank you so much!!!

This worked and looks perfect.

Attached the working code.

Delete Viewport Types.dyn (29.9 KB)

Obviously a big thanks to the original creator. This resolves one of those unexplainable Revit shortcomings that has been driving me crazy every time I insert new views or schedules.