Professional Documents
Culture Documents
Presentation 2116 CM2116 Presentation
Presentation 2116 CM2116 Presentation
Automate repetitive
(and really boring) tasks
Take advantage of
computer’s speed and
accuracy
More fun writing a
macro than clicking the
mouse 1000 times
Image credit: Shutterstock.com
What Customization Can Do For You
Macros
External commands
External applications
Database applications
The Revit 2014 Software Development Kit
Download from
www.autodesk.com
Install on hard drive
Revit API help file
Macro samples
Your first macro!
Choose a Programming Language
History
C# Based on C and C++
Pros
Lots of Revit specific code
samples available
Cons
Code not as readable as
other options
Syntax is terse and case-
sensitive
Choose a Programming Language
History
VB.Net Evolved from MS Basic
Pros
Code is easier to read and
not as strict as C#
Cons
Code is “wordier” than C#.
Considered not as elegant
as other options
Choose a Programming Language
History
Python Created by Giudo van
Rossum in 1991
Pros
Lots of general code
samples available
Great for beginners
Cons
Not many Revit specific
code samples available
Choose a Programming Language
History
Ruby Created by Yukihiro
Matsumoto in 1995
Pros
Lots of general code
samples available
Easy to learn
Cons
Not many Revit specific
code samples available
Converting Code
Patience
Persistence
Trial and error
Lots of resources
available
It’s a roadmap,
not a narrative
Namespaces
Code samples
Troubleshooting Macros
Online Forums
Augi - http://forums.augi.com/forumdisplay.php?218-Revit-API
Online Courses
Learn to Program the Revit API - https://www.udemy.com/revitapi/
Books
Autodesk Revit 2013 Customization with .Net How-to by Don Rudder
www.archsmarter.com
Contact Me
michael@spacecmd.com
@MichaelKilkelly
Autodesk is a registered trademark of Autodesk, Inc., and/or its subsidiaries and/or affiliates in the USA and/or other countries. All other brand names, product names, or trademarks belong to their respective holders. Autodesk reserves the right to alter product and services offerings, and specifications and pricing at any time without notice, and is not responsible for typographical or graphical errors that may appear
in this document. © 2013 Autodesk, Inc. All rights reserved.