Thursday, January 15, 2015

BIM Consortium Revit Addin Bug Fix Edition

I uploaded a new build of the BIM Consortium Addin today with quite a few bug fixes. The most notable ones being...

  • Delete Unused Views would crash Revit randomly. Tool completely re-written to be more stable
  • Rooms to 3D Views and the Room 3D Tags shouldn't error out when there are un-bounded or non-placed rooms anymore
If you come across any other bugs, make sure to shoot me an email at troygates@gmail.com.


Download HERE 

Monday, July 21, 2014

BIMConsortium Revit Addin Update + New Tools + 2015 Compatible












A new update is available located here: BIMCon_Addin_1.2.zip


Updated
  • Addin now supports both Revit 2014 and 2015
  • Delete Views - Added option to delete all views NOT on a Sheet
















New

3D Room Tags
This tool will place a generic family with 3D text into the center of every room at the specified height above the room's level. Load the included family Room Tag 3D BIMCon.rfa. This family can be modified to what you want it to look like as long as it keeps the same name. I will add an option in the future to pick a family of your own.


















Room to 3D Views
This tool will create four (4) 3D Camera Views for every room in the model. The views are placed at lower-left and upper-right at floor and above ceiling. The heights are adjustable.

* Note: Because of how the API determines a room boundary as a rectangular box, the cameras may be located outside the actual rooms.























Merge Text
This tool is actually two (2) tools, Merge 2 Text and Merge Multiple Text.
















The first one will take two (2) pieces of text and merge them together with several options available.





















The second tool will merge several text elements into the first one selected. Notice that you need to hit ESC to end the selection of elements.

















NOTE:
If you receive an error in Revit about not being able to load the addin, go to the folder where you saved the dll file, right-click the file and go to properties. In the properties dialog click the button to Unblock the file.


Tuesday, June 24, 2014

Revit Lookup 2015 Addin

During my class (BIM Managers Guide to Automating Revit Using Macros) at RTC in Schaumburg (Chicago) last week, I mentioned the Revit Lookup addin. Afterwards several people asked where they could download a compiled version. I compiled the most recent source from https://github.com/jeremytammik/RevitLookup/ and uploaded it to my blog so you can download it (below).

Download
Revit Lookup 2015

Install Instructions
Extract the 2 files to C:\ProgramData\Autodesk\Revit\Addins\2015\


If you are interested in 2013 and 2014 versions you can find them in a blog post from last year: http://revitcoaster.blogspot.com/2013/09/creating-macros-larug-sept-2013.html 

Thursday, June 05, 2014

View Schedule with Detail Numbers Macro for Revit

A question was posted on http://revitforum.org about showing a view's detail number in a view list schedule. Revit has a parameter for the Detail Number (see first image) but it isn't accessible to add in a view list schedule.

Original post: http://www.revitforum.org/architecture-general-revit-questions/20119-detail-number-view-list-schedule.html




















Solution

Step 1
Create a View List schedule (or edit an existing one) and add a new text Parameter named "Detail_Number" (notice the _ in the name)






















Step 2
Create a new macro with the following routine and run it

public void DetailNumber()
{
    UIDocument uidoc = this.ActiveUIDocument;
    Document doc = uidoc.Document;
  
    string strDetailNumber = "Detail_Number";         
  
    FilteredElementCollector collector = new FilteredElementCollector(doc);
    ICollection<Element> collection = collector.OfClass(typeof(View)).ToElements();
  
    using (Transaction t = new Transaction(doc, "Detail Number"))
    {
        t.Start();
      
        foreach(Element e in collection)
        {
            View v = e as View;
          
            try
            {
                Parameter bpDetailNumber = v.get_Parameter(BuiltInParameter.VIEWPORT_DETAIL_NUMBER);
                v.get_Parameter(strDetailNumber).Set(bpDetailNumber.AsString());
            }
            catch
            {
              
            }
          
        }
      
        t.Commit();
    }
}


Results
All the views that are on sheets now have the Detail Number copied into the Detail_Number parameter.



















Run the macro whenever you want to update the values in the new parameter to reflect the current state of the project (aka is doesn't auto update and needs to be run manually).

Wednesday, February 12, 2014

BIM Consortium Addin Updated With New Tool








A new update has been uploaded of the BIM Consortium Revit Addin. The new release adds some polish to the existing tools and  also adds a new tool. Hope you enjoy them as much as I had making them.

Download: https://drive.google.com/file/d/0B16E2YBKmeUtbmZsNDFIUmJHMm8/edit



Dependent Views from Scope Boxes (New)
This new tool will allow you to create dependent views for any number of floor or ceiling plans and apply a Scope Box to them. This tool was created for setting up projects that have multiple work areas divided up using scope boxes.



























Dependent Views (Updated)
The tool now has an interface that allows you to pick how many dependent views you want to duplicate of the current view.















Delete Views (Updated)
Added a logo to the dialog box.























3D Grid Creator (Updated)
Added a logo to the dialog box.