My favorites | Sign in
Project Home Downloads Wiki Issues Source
Project Information
Members
Featured
Downloads
Wiki pages
Links

Introduction

RevitPythonShell exposes the RevitAPI in Autodesk Revit Architecture and Project Vasari to IronPython (python on .NET) scripts.

This allows the user to explore the API interactively, without leaving Revit or Vasari. Once your code works, you can save it as a CannedCommand, which will show up in the Revit / Vasari ribbon.

Features

  • Interactive IronPython interpreter
    • with syntax highlighting
  • autocompletion (press CTRL+SPACE after a period)
  • based on the IronLab project
    • IronPython pad (also from the IronLab project
    • configurable "environment" variables that can be used in your scripts
    • CannedCommands for running your awesome scripts

Getting Started

Download the appropriate installer, install, restart Revit / Vasari and get going!

You can find sample scripts here:

Get Involved

Tell me about stuff you'd like to see in upcoming releases on the RevitPythonShell group.

Add bugs / issues to the Issues page.

Download the source, fix it and tell me about it. I'll try to work with you to get it into trunk. Thank you.

History

Credits

(I have yet to create a complete list of all the fine people who have helped me with this...)

  • Zachary Kron (Port to Vasari)
  • Akimitsu Hogge (Port to Vasari)
  • Jason Schaeffer (Port to Revit 2011)

NOTE: If you are not on this list, but believe you should be, please contact me!

News

22.09.2011

Special thanks to Zachary Kron and Akimitsu Hogge for helping me finally port to Revit 2012! You can find the installer in the featured downloads section.

We now have an installer for Vasari TP2.1 as well, in case you're following Zachs blog and just dying to hack away in Vasari!

02.02.2011

I finally got round to adding an AutoCompletionFeature. Hit TAB to see a list of autocompletions. This requires a __completer__ variable to be defined (e.g. in the InitScript), but the new installer includes one by default. Check out the AutoCompletionIntroduction for more information.

older news

read more here: OlderNews

Requirements

Requirements for the Revit 2012 builds (as of r140)

  • Autodesk Revit 2012
  • .NET 4.0
  • IronPython 2.7
  • CPython 2.7
    • Not really a requirement, but useful, as you can then use the python standard library with its "batteries included" effect

Requirements for the Revit 2011 builds (as of r72)

  • Autodek Revit 2011
  • .NET 3.5
  • IronPython 2.0
    • As soon as Autodesk Revit supports .NET 4.0 we can switch to IronPython 2.6!
  • CPython 2.5
    • Not really a requirement, but useful, as you can then use the python standard library with its "batteries included" effect

Requirements for the Revit 2010 builds (pre r72)

  • Autodek Revit 2010
  • .NET 3.5
  • IronPython 2.0
    • As soon as Autodesk Revit supports .NET 4.0 we can switch to IronPython 2.6!
  • CPython 2.5
    • Not really a requirement, but useful, as you can then use the python standard library with its "batteries included" effect
Powered by Google Project Hosting