A blog dedicated to tidbits of software information related to the AEC industry. Most tips and tricks are roughly 60 seconds because, "Hey who doesn't have 60 seconds".
*The views and opinions expressed in this blog do not reflect those of my employer.

Thursday, September 17, 2015

Clearing Backup Revit Family Files with #DynamoBIM

Have you ever been creating Revit families, making edits and saving to find your directory looking like this?

imageIt can become a huge mess and is a pain to clean up. (Unless you have some programming knowledge)

This made me think, how can Dynamo help me out?

Enter the File.Delete node.

imageThis node is an out of the box Dynamo node and is super dangerous and powerful! Remember uncle Ben?

Picture1With that said I present to you the Rhythm.BackupRFADeleter

image This node takes a directory as input and a boolean to run it. After running, it shows how many files it deleted. Currently it only deletes files that end with the typical backup suffix in Revit. (Family1.0001.rfa)

imageAnd here is my nice clean directory!

imageAs always, get it on Rhythm and use with care! :)

-johnp

3 comments:

  1. Just wondering and please excuse my ignorance, but can this clearing feature be adapted for other Revit objects, such as unused Autocad layers and materials, nested families, etc.?

    ReplyDelete
    Replies
    1. This workflow won't do that, but that shouldn't be too difficult to do. I can investigate.

      Delete
  2. This comment has been removed by the author.

    ReplyDelete