Macro to Set Underlay level to none

The way Revit sets the Underlay level of a new Floor Plan view is not of great help for those who work with a high amount of views. Configuring view by view the Underlay parameter to none is a repetitive task that brings no additional value and it consumes too much time.Unfortunately, Revit does not ease up the things, and a batch modify option of the viesws doesn’t exist for the “out of the box” Revit.  So the only way that I found to fix my issue was recurring to the Macros.

I share this code snippet and hope that it will be useful for you guys:

		public void SetUnderlayViewNone()
		{
			UIDocument uidoc = this.ActiveUIDocument;
			Document doc = this.ActiveUIDocument.Document;

			FilteredElementCollector filteredviews = new FilteredElementCollector(doc)
				.OfCategory(BuiltInCategory.OST_Views);

			using (Transaction t = new Transaction(doc, "Set Underlay None"))
			{
				t.Start();

				foreach (Element e in filteredviews)
                        {
                                View myviewplan = e as View;
                                string viewName = myviewplan.Name;

                                Parameter underlyParam = myviewplan.get_Parameter(BuiltInParameter.VIEW_UNDERLAY_ID);
                                if (underlyParam != null) {
                                	ElementId id = new ElementId( -1 );
                                	underlyParam.Set(id);
                                }

                        }

				t.Commit();
			}

		}
 

This code affects the entire model so be careful with what you are doing.

Revit Rooms/MEP Spaces tolerance is too much

Lately I’m finding myself with some revit Room/MEP Space bounding situations that make me think on the amount of area is loosing because Revit has a tolerance for Rooms/MEP Spaces and will allow small gap that the revit guys established. Basically when a column has a slight offset from the nearest wall causing a gap in the room/space bounding.

Of course there must be a reason for this tolerance but anyway how it makes me doubt of the accuracy of my models.

As Barrie Sharp explains in his blog it can reach to 449.8mm tolerance in a simple situation.

Here you have some examples of what I’m experiencing with some models:

image001

image004

image006

External references:
Vote this wish on AUGI wishlist
Revit Buzz | Solving Room Bounding Issues–Divide & Conquer!

Delete the family and model backup files created by Revit

Every time you save Revit automatically create these kind of files ,*.0001, that at the end of the day is filling up your hard drive with unnecessary files. Here you have the routines I’m to get rid of them. It’s very easy to make them work:

  1. Copy the 4 files attached in the zip files to the root of your family library or projects folder.
  2. Run DELETE_families backups or DELETE_revit backups.

Download the zip here: Delete revit backups Screenshots:

delete revit family model backups_1delete revit family model backups_2

Untitled-en

How to remove spaces model?

The spaces generated in the model can not be removed by deleting them from the view you are working, they still remain in the model. The way to do it is through the tables, in the next video we do this exercise:

“space separator” tool Revit MEP