0566/2078

Ritchie's Revit API Introduction

Originally Published in

We have already seen a couple of interesting contributions by Ritchie Jackson of the Adaptive Architecture and Computation programme at UCL, the University College London:

Here is another topic, an introduction to the Revit API for programming novices for the London Revit User Group LRUG. Knowing Ritchie, it includes a couple of novel aspects:

  • Focus on VSTA macros.
  • Comparison of manual versus API approach.
  • Focus on geometry generation.

The source code snippets cover the generation of some extremely simple shapes whilst the sample projects Ritchie presents feature the API workflow in more advanced examples:

  • A single line.
  • A simple box extrusion.
  • A box with a cut-out.

A box with a cut-out

  • Iteration to generate a series of boxes with cut-outs to represent a boardwalk.

Boardwalk

  • An amphitheatre set-out:

Amphitheatre

  • A roller-coaster reception with all its elements and materials:

Roller-coaster reception

  • A curved truss with all its elements:

Curved truss

  • A conceptual high-rise model including
    • Façade set-out
    • Façade panels
    • Façade materials
    • Floor plates
    • Beams
    • Beam materials

Highrise

The presentation includes more details on all of these items, obviously, descriptions of the workflows, and a detailed quick start guide for creating VSTA macros. Some of these samples were also mentioned in Ritchie’s previous contributions.

Here is Ritchie’s complete Revit API Introduction Presentation with the accompanying Notes and Source Code samples. Very many thanks to Ritchie for sharing this with us!