Revit 2020: I am regularly needing to clean up models that have been poorly created. Many of these have countless line styles, line patterns, fill regions etc. within them. They don't purge out using the purge command. How do I get rid of them?
Gelöst! Gehe zur Lösung
Gelöst von dan. Gehe zur Lösung
Gelöst von RDAOU. Gehe zur Lösung
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
ProjectSweeper is no longer supported and does not work anymore with latest Revit update.
it works till 2021 I believe .... many apps went unsupported considering the fact that users are getting more and more familiar with dynamo and the api
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
Try the version from Github...https://github.com/jdueitt/Project-Sweeper
If non of the listed option in reply 2 works for you, then I guess you are stuck with either doing it manually or hiring a more proficient Revit expert to do such things for you
YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION
I can't find the "Element Classes" nor "All Elements of Class" nodes. Are those custom nodes that you made, or do they belong to a package? Where can I find it?
These nodes are part of the stock Revit set.
Search the library for "Element Classes" and "All Elements of Class".
I am using Dynamo Revit 2.13.1.3891.
Hi.
I just replicated this code (thanks) and it works for my line styles but seems to completely ignore all the imported ones - which of course is why I'm here. Can anyone tell me why? I have never used Dynamo but I do have some (now ancient) coding experience. I'm guessing it has something to do with the element class?
Edit: I should add my unwanted line styles are from an architect's linked Revit project not from DWGs
@joshpAZD9W wrote:Edit: I should add my unwanted line styles are from an architect's linked Revit project not from DWGs
Are you trying to delete them while in the architect's model?
No. I hadn't thought of that. I just tried that and it works - kind of. It finds what I assume to be the Architect's own line styles but misses ones that must have been auto-imported from files that they in turn had earlier imported. (I could tell because I was filtering for lines starting with "STO" as there were a bunch of them and they were not appearing)
I also tried making a copy of my project and completely removing the linked project. The Dynamo still fails to find any of the line styles that came from the Architect's project.
In this case, it seems that you are searching for a specific word in the linestyle name. Is there a way to test whether or not that linestyle is being used in the project?
Can you share the dynamo file with purge line style, line pattern fill region, dimension style, text style which are not in use.
The fastest way I know to check if anything is in use in the model is:
This method works for styles and components that use instances, including line styles that can be drawn using the DETAIL LINE command.
However, line styles within families will not work with this method.
My dynamo skills are extremely limited. I do not have a dynamo file that does what you want.
The “PURGE UNUSED” command on the MANAGE tab will purge dimension styles and text styles.
If the styles you want to remove do not appear in the while using the PURGE UNUSED command, those styles are still in use in the model. A simple way to find and remove instances of a text or dimension style you want to remove is to:
The text or dimension style should be available using PURGE UNUSED after that unless it have been imported by a family.
@dan I've had this issue countless times, where the styles (text / dimensions / filled regions / lines) refuse to purge -- Even removing them from all families, legend, schedules, followed by [ create instance > select all > delete > purge] still doesn't remove them.
I suspect that some of the unpurgeable text styles are embedded in families, templates, imports, and/or schedules in your project.
There might be no instances of the text styles, but Revit wants to hold on to them just in case you use something that requires them.
As an example, start a completely new model. Look at the number of text styles available when you use the TEXT command. Now use the PURGE UNUSED command and notice that you can't purge all the text styles. Revit keeps the styles that are referenced somewhere in the model even though there are no instances of them.
I don't know how to find them all. I would start looking in your schedule templates.
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.