This site is not sponsored or endorsed by, or affiliated with, Autodesk, Inc.

Thursday, January 12, 2012

Want to learn Revit API? - From Building Coder

Great blog post directly from Jeremy Tammik's "The Building Coder" blog - if you want to learn Revit API - very useful information!!! Now all I need is EXTRA TIME to dabble in this myself!

(Thanks to Jeremy for being so awesome!)

The Building Coder: Preparing for a Hands-on Revit API Training

January 12, 2012

Preparing for a Hands-on Revit API Training

Question: I have registered for a hands-on Revit API Training, but I have little experience in programming, and almost none in .NET or C#. How can I prepare for it to make best use of this opportunity?
Answer: This is actually all described in the discussion on getting started with the Revit 2012 API. Still, let's highlight some of the points and put them in proper order for you.
The first of the following items is of interest for anyone just getting started with programming, .NET, or C#. All the rest are for those with some prior .NET programming experience:
  1. Work through some .NET programming tutorial. There are lots on free online .NET tutorials available. I mentioned a few in the getting started overview. Some more advanced and interesting hints are listed in the C# and .NET little wonders. Even spending just a day working through such a tutorial will make an enormous difference.
  2. Install the Revit SDK, available from the Revit Developer Center, and set up the environment.
  3. Read the first chapter of the Developer Guide "Revit 2012 API Developer Guide.pdf", Welcome to the Revit Platform API, also available online.
  4. Work through the My First Revit Plugin tutorial, also available for VB, both again from the Revit Developer Center. The developer center also provides further introductory training videos, the DevTV recordings. Equivalently, work through the hands-on tutorials in the developer guide Chapter 2, Getting Started.
  5. Install the RevitLookup add-in, included in the Revit SDK. This really is the most important development tool for interactively exploring the internals of the Revit database, and of great interest for advanced end users as well, actually.
  6. Install the RvtSamples external application add-in, which is also provided as part of the Revit SDK. It provides an interface to load and run all of the hundred-plus other SDK samples, instead of installing them individually, which makes the exploration and debugging of their functionality much more accessible. Here are some pointers to more information on RvtSamples.
All of these steps are described in more detail in numerous other places. Many of them are pointed to from the getting started guide.
The blog also defines a dedicated category providing a collection of all the getting started material.
Some additional notes on these issues are provided by a previous take on this very issue of preparing for a hands-on training. You might also be interested in this overview of the training material that we use in our own classes.
This should cover everything of importance up-front pretty thoroughly :-)
Good luck getting started, don't give up, and above all have fun!

Dances With Elephants

I want to point out this useful new developer related blog with the most awesome name of the year: Dances With Elephants by Jim Quanci, Director of the Autodesk Developer Network ADN, on how small companies can leverage big ones to build their business, e.g. by using the Autodesk Revit API to create and provide your add-in functionality to a large global audience.
Kean just published some background info and a short description of it in slightly greater depth. Enjoy!

Tuesday, January 10, 2012

How to properly recover a central file in Revit


To properly recover a Revit file you will need to do the following:
  1. Copy the backup folder to a location without the central file (this step is critical to prevent the corruption in the project from stopping the recovery).
  2. Start Revit
  3. Open the software>from the ribbon go to the Collaborate tab>then to Restore Backup.
     

  4. Navigate to where the central file is stored. You will see a folder with the central files name_backup.
  5. Since you copied the Revit Project Backup Folder,(Revit can't find the .rvt file) so you will see: 
    Click Yes!
  6. You will now get a list of times when the backup was saved periodically throughout the day. Something similar to this: (mine shows only one since I only made one version for this example). Try the most recent so you will have your most recent work!!

  7. Click Save As and navigate to a location to save the recovered file.
  8. After saving, Revit will ask you:   


    HECK YEAH, I wanna open it!! (click Yes)
  9. Verify you are able to open it successfully. If you are not you may need to go through steps 1-7 to find an older save backup file.