Ritchie’s Revit API Introduction

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
:
<!–
472_hermite_splines.htm:<!– Ritchie Jackson [r
480_constructability.htm:<!– Ritchie Jackson [
483_project_vasari_api.htm:

Ritchie Jackson a
495_flatten_profile.htm:

Anyway, here is anot
–>

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!


Comments

3 responses to “Ritchie’s Revit API Introduction”

  1. PLawton Avatar
    PLawton

    Folks:
    Is there any way that you could write a macro that would allow users to record a macro? I’m completely serious – we as mere mortal users have to work within temporal and financial constraints, so we don’t have time to learn how to write macros in C# or .net, but we DO need to be able to automate repetitive tasks in Revit.
    Any hope?
    Thanks

  2. Dear Plawton,
    Hope there is, of course, always. This is a very interesting idea and something that has been talked about in the past as well. It will probably have to picked up by the Revit development team itself, long-term. I would recommend not to hold your breath while you wait.
    Cheers, Jeremy.

  3. Mr. T.:
    Last year I asked this question here, as well as on the Autodesk Discussion Groups, and now someone may have an answer – use the journal files:
    http://forums.autodesk.com/t5/Autodesk-Revit-API/Macro-to-record-a-macro/td-p/2982890
    Is this a possible solution (ordinary users creating macros), or is this just urban legend, as suggested?
    Thanks so much for all of your contributions.

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading