By Aaron Lu
One of the new features of Revit 2016 API is that Revit now supports macro written in Python or Ruby.
But there is no Python or Ruby code examples in Revit 2016 SDK. So how to get started? Well, most of people did not notice that the code examples are hidden in the default macro projects created by macro manager, see below image, the project is the default python project, there are several "if False" statements, if you remove the line of "if False", uncomment and unindent 4 spaces to methods below it, the methods will become available macros and appear in the macro manager, and you will see the same "if false" in Ruby projects too: