Sunday, 21 April 2013

Bloated Revit central files

A couple of weeks ago I was asked to take a look at a project that the team simply couldn’t open up. The file wasn’t giving any errors and the progress bar sat there at 99% and would not finish opening. To put things in context, this was an FF&E hospital project with about 12 floors and contained links to various other files that housed the building core & shell geometry.

Right off the bat I noticed the excessive file size (about 595MB). By closing the worksets that contained other linked Revit models (about 11 of them), the project finally opened. File size is typically one of the first things to look at when faced with projects that won’t open. In some cases the issue can be easily rectified through a purge of unused elements and a compaction during a sync with central, typically resulting in a reduction of 30% to 50%. Sometimes users fail to realize that if bloated files exist across the board in their project and they load these files as links, they can easily suffer serious performance issues as they run low (or out of) RAM. This is one of the most avoidable problems that BIM Coordinators should watch out for on their projects and can be easily prevented through regular file maintenance.

However in this instance, a purge and compaction only resulted in trimming about 90MB off the file (not bad, but not enough). So it was time for a much more in-depth analysis of the file contents.

My first suspicion was that the project might have contained imported CAD files. A quick search with Ideate Explorer did not reveal any so then I started looking at groups of elements with large quantities. A good troubleshooting strategy is to delete these large group of elements, save a new file (as a new Central) and see how much space is recovered. I took out all furniture families (about 16,000 instances) but the file barely lost 40MB. The families in question were very lightweight and contained mostly plan symbolic representations, which was a smart move for this project’s purpose.

Next I noticed there were almost 7,000 rooms, but did not suspect these would be the source of the problem. After all, they just contain some data, right? Well, it turns out rooms were to blame for this bloated file but I couldn’t figure out how to get this excess amount of bits and bytes released.

After filing a Support Request with Autodesk, I did some more testing based on their recommendations and saved a series of files after deleting rooms by floor (about 8) to try and identify if rooms on a certain floor were consuming more file space than others. Averages revealed that rooms on some floors were using a bit less (ex: 20KB/room) when compared to others (65KB - 83KB/room). However this analysis still led to nowhere and I did not receive further suggestions. Usually Autodesk is eager to take a look at the project file itself but this was not the case this time, even though the SR was filed as Urgent. We were running out of time, so it was time for some drastic measures.

After a purge and deletion of all rooms, the file went down to a very reasonable 65MB. That gave me a goal to work towards. Rooms were consuming about 300MB and if placed rooms were copied and pasted into a new project, they resulted in a 100MB file, which is about 17KB/room. Deleting 800 unplaced rooms from a room schedule did save 23MB, but somehow, about 200MB of space was being held hostage by the remaining 6,160 placed rooms.

Here are the steps taken to fix the file:

  1. Opened a detached copy of the original project and deleted all rooms. The file was saved as a new central, no purging (155MB);
  2. Opened a detached copy of the original project and deleted all model elements, links, families, sheets and views, leaving just placed rooms. The file was saved as a new central, no purging (108MB). Note that deleting model elements is easier to accomplish by going through the Family tree in the project browser. Since Revit does not let you delete the last type of a system family, you need to create a duplicate of the family and then delete the original one. This ensures that if any elements exist in the project with that type, that they are deleted. Sheets and views are easily deleted through a sheet schedule and view list respectively, both set to not itemize every instance. This allows you to pick the single displayed row and delete them all at once;
  3. Opened the central file created in step 1, created workset “Rooms” and set as Active;
  4. Linked the file created in step 2, Auto – Origin to Origin;
  5. Selected the link and bound it, turning it into a group (did not select levels and grids to be inserted). When prompted, removed the original link as no instances were now placed;
  6. Selected the resulting group and ungrouped it. All rooms were now placed exactly in their original location, with the exception that their workset was now “Rooms”.
  7. The new central file was saved (255MB) and those 200MB were finally released. By purging, this file should ultimately end up as a 170MB project, which is much more reasonable.

You might not be faced with this exact same problem on any of your projects, but I hope it outlines the systematic approach to troubleshooting and resolving issues with bloated files.

6 comments:

Nick said...

Dave,

Perhaps I missed something but are you saying that the problem was "unplaced rooms"? I know Revit tends to keep a memory of rooms that have been placed and deleted (in case you ever want to get them back I suppose).

If this was a case of "unplaced rooms", I actually have 2 suggestions (not sure if you tried this or not).

#1 - The free Model Review add-in from Autodesk. It has the capacity of removing unplaced rooms and duplicate objects. I use it all the time as a quick fix.

#2 - My own add-in. I am sure there are a few free add-ins out there that can delete unplaced rooms. I created one for our office because it is actually fairly simple (it just finds unassigned rooms and deletes them).

If I am misunderstanding and the problem actually related to the room objects, then feel free to ignore the suggestions above. :)

Dave Baldacchino said...

For further discussion, see the comments below. Turns out that volume computations were turned on and this was causing the file to increase in side due to the room 3D face data/computations.

http://www.blogger.com/comment.g?blogID=8569516199116206255&postID=3511159065441701900

Dan James said...

Haha, there is always a check box! Thoroughly interesting blog post though. I'm working on a replacement hospital our file size is about 175 Mb, our consultant's models range from 50 to 250Mb and there are 9 of them. We are also working through Revit Server, so I'm always looking fro ways to reduce file size.

Dan James said...

Haha, there is always a check box! Thoroughly interesting blog post though. I'm working on a replacement hospital our file size is about 175 Mb, our consultant's models range from 50 to 250Mb and there are 9 of them. We are also working through Revit Server, so I'm always looking fro ways to reduce file size.

revit courses london said...

Thanks Dave Baldacchino you are just amazing... I have fix it now helped your tips and comments much..Keep sharing.You just saved me.

Hoàng Hưng said...

Hi Dave,
One question. What is the meaning of no purging?
Hung