The Building Coder

Revit API Connecting Desktop and Cloud @ TUDa

The RTC Revit Technology Conference Europe and my stay here in Porto is nearing its end:

Wrapping up in Porto

Here are some pictures of the Ponte Luis I from the evening event and the morning walk to Alfândega do Porto:

Last Night and Morning at RTC

I have a rather busy time ahead, leaving early Sunday morning straight to Munich for the one-week Forge accelerator workshop.

I am flying there with the Portuguese transavia airline.

I only mention that to point out that they have implemented the most perfect online check-in experience I ever used. This is the first time ever that I was completely and enthusiastically happy with it 100% from start to finish.

I wish every web site was like theirs.

Connecting BIM and Cloud @ TUDa

The Forge accelerator in Munich is immediately followed by the next one-day workshop:

Connecting BIM and cloud @ TUDa

I lead that one all on my own at Technische Universität Darmstadt, Institut für Numerische Methoden und Informatik im Bauwesen, the institute for numerical methods and computer science in the construction industry at the technical university in the very pleasant German city Darmstadt, in Hessen, just south of Frankfurt.

Technische Universität Darmstadt

The agenda is simple:

Creating a Revit Add-In with One Single Click

I can create a new Revit add-in DLL, compile, load and execute it with one single click or two using the Visual Studio Revit add-in wizards, and I demonstrate that live in a handful of seconds.

Obviously, if everything were as simple as one single click, life would be extremely boring and no challenge at all.

It makes things a lot more interesting if you understand what is going on under the hood.

That is easily achieved by working through the Revit API getting started material, looking at the basic installation sections of the Revit API Developer Guide, and installing the Revit SDK from the Revit Developer Centre.

With that material in hand, you will understand and be able to make good and exciting use of the single-click functionality provided by the Visual Studio Revit add-in wizards.

The most effective way to get started programming with the Revit API is to work through the step-by-step instructions provided by the DevTV and My First Revit Plugin video tutorials.

After that, you can dive in deeper by working through the self-documenting ADN Revit API Training Labs. They consist of a series of hands-on lab exercises in both C# and VB.NET accompanied by detailed step-by-step training instruction documents.

Visit the Revit Developer Centre to download the Revit SDK containing documentation and samples:

I already wrote similar instructions for preparing for a hands-on Revit API training back in 2012 which are also still absolutely relevant.

Connecting Revit and Forge in 55 Minutes

Connecting Revit and Forge is extremely simple, thanks to the large amount of existing boiler-plate code available, mainly in the GitHub Developer-Autodesk and Autodesk-Forge collections.

We take a closer look at the roomedit3dv3 sample enabling a super simple minimal round-trip editing operation in the Forge viewer sending back a trivial transformation to be applied to a single Revit BIM element via socket.io.

This web server application is based on Philippe Leefsma's forge-boilers.nodejs node.js-based boilerplate projects for the Autodesk Forge Web Services APIs.

It also includes a viewer extension for selecting and translating elements based on Philippe's Viewing.Extension.Transform viewer extension, from his huge library of JavaScript viewer extensions.

All in all, I cannot have added much more than one or a couple of dozen lines of code to the boilerplate provided by Philippe.

Here is the full detailed description of all my research and implementation efforts right from the start:

Let's see whether (and hope that) I manage to package this in a suitable format for a 55-minute hands-on lab in the coming week.