Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

Purge Unused / Redundant Line Styles

19 ANTWORTEN 19
GELÖST
Antworten
Nachricht 1 von 20
Morrow.Brady
11983 Aufrufe, 19 Antworten

Purge Unused / Redundant Line Styles

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?

19 ANTWORTEN 19
Nachricht 2 von 20
RDAOU
als Antwort auf: Morrow.Brady

@Morrow.Brady 

 

  • Manually

 

 

 

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


Nachricht 3 von 20
Morrow.Brady
als Antwort auf: Morrow.Brady

ProjectSweeper is no longer supported and does not work anymore with latest Revit update.

Nachricht 4 von 20
RDAOU
als Antwort auf: Morrow.Brady

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


Nachricht 5 von 20
Morrow.Brady
als Antwort auf: RDAOU

It doesn't work in Revit 2020 anymore.

Nachricht 6 von 20
RDAOU
als Antwort auf: Morrow.Brady

@Morrow.Brady 

 

 

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


Nachricht 7 von 20
Morrow.Brady
als Antwort auf: Morrow.Brady

How do you install it from there?

Nachricht 8 von 20
dan
Explorer
als Antwort auf: Morrow.Brady

I have no Dynamo training.

This works quite well.

Delete line patterns by name_2022-05-09_04-36-23.png

Nachricht 9 von 20
amedina
als Antwort auf: dan

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?

Nachricht 10 von 20
dan
Explorer
als Antwort auf: amedina

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.

Nachricht 11 von 20
joshpAZD9W
als Antwort auf: dan

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

Nachricht 12 von 20
RobDraw
als Antwort auf: joshpAZD9W


@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?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Nachricht 13 von 20
joshpAZD9W
als Antwort auf: Morrow.Brady

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.

Nachricht 14 von 20
ay_dmagill
als Antwort auf: dan

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?

Nachricht 15 von 20
ay_dmagill
als Antwort auf: dan

This goes after Line Patterns, but is there a way to get to Line Styles?
Nachricht 16 von 20
imtiyaz.ansari
als Antwort auf: dan

Can you share the dynamo file with purge line style, line pattern fill region, dimension style, text style which are not in use.

Nachricht 17 von 20
dan
Explorer
als Antwort auf: ay_dmagill

The fastest way I know to check if anything is in use in the model is:

  1. to make an instance,
  2. right-click the instance > SELECT ALL INSTANCES > IN ENTIRE PROJECT INCLUDING LEGENDS,
  3. look in the PROPERTIES window and check the count of instances displayed on the dropdown menu near the top.
    1. If the count is more than 1, there were existing instances in the project.

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.  

Nachricht 18 von 20
dan
Explorer
als Antwort auf: imtiyaz.ansari

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:

  1. create an instance of the style you want to remove,
  2. right-click the instance and choose SELECT ALL INSTANCES > IN ENTIRE PROJECT INCLUDING LEGENDS,
  3. delete.

The text or dimension style should be available using PURGE UNUSED after that unless it have been imported by a family.

 

Nachricht 19 von 20
ola6n4qrvdsr
als Antwort auf: dan

@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.

Nachricht 20 von 20
dan
Explorer
als Antwort auf: ola6n4qrvdsr

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.

In Foren veröffentlichen  

Autodesk Design & Make Report