I want purge using the command purge unsed which is present in manage tab. But along with that I want purge unused [views, view templetes, lines/linestyles, filled regions, sheets, elements, filters… etc] all purgeable objects present in the project and want to know the names of purged items as output. Do I have any solution ?
I am trying with genius loci package node “purge unused” with deeply but I want purge unused sheets, unused items which are purgeable in the project.
You can use the purge command in Dynamo (via Python), but this will not Purge views, view templetes, lines/linestyles, filled regions, sheets, elements, filters.
You have to write something yourself for most of these elements.
Purging always requires a condition. if this condition is true, the object will be purged.
How would you like to purge sheets? If there are not views on the sheets, they can be purged?
Yes thank you so much @Joelmick it helps for me. Actually I was also doing the same by getting the views which are not present on sheets and sheets which don’t contain any of the views.
Yeah, but I always do it this way so I can see which filters are used and which aren’t. I display the names via the Dynamo player so users can see what they are and aren’t purge.
Your solution is less nodes though.
…Something with Roads and Rome…
It checks if a workset in empty, It asks the user if he wants to delete the worksets. If so, It renames the workset so they and up at the top of your workset list and it opens the Workset editor. The user can then delete them by hand.
It automates the whole process of finding out which worksets are empty. So it does not delete them for you, but it makes the process a lot easier.
2 days after I made this tool the Revit API 2023 came out and in there you can remove worksets. So now the tool check the Revit version and if the Revit version is 2023, it will also delete the workset for you.
Whaha thanks, trying to stick with the Beyond-(Software name) BeyondRevit and BeyondDynamo, but for this part of the addin (Hades) I got my inspiration from Horizon Zero Dawn
Among the addins I developed, I also have a purge button.
I can delete view templates,unused view filters, views not placed, imported DWG, unused scope boxes, unused parameters, unplaced spaces, unplaced rooms, imported line styles and imports in Families object styles.
Impressive!
I’m interested in the purge unused parameters.
Is it a Dynamoscript behind that one? If so, would you mind sharing that one? Wold be much appreciated!