An IronPython scripting environment for Autodesk Revit and Vasari
C# Inno Setup Python AutoIt
Clone or download
Permalink
Failed to load latest commit information.
IronTextBox port to 2012 Sep 14, 2011
Output adding newest installer (from pr #74) Mar 19, 2018
PythonConsoleControl updating avalon Jan 30, 2018
RegisterRevit2011Addin merging 2013 branch back into trunk (getting ready for 2014 branch) May 30, 2013
RegisterRevit2012Addin fixed a bug in the uninstaller (was not deleting RevitPythonShell2012… Feb 29, 2012
RegisterRevit2013Addin merging 2013 branch back into trunk (getting ready for 2014 branch) May 30, 2013
RequiredLibraries first step towards an installer for RPS 2018 Jul 13, 2017
RevitPythonShell Merge branch 'issues/oldversion' into feature/cleanups Mar 6, 2018
RpsRuntime Fixes issue with Settings path added to search paths multiple times Mar 6, 2018
Setup merging 2013 branch back into trunk (getting ready for 2014 branch) May 30, 2013
addrevitplugin No commit message Jun 9, 2010
packages/AvalonEdit.5.0.4 Updated AvalonEdit to 5.0.4 Jan 13, 2018
.gitignore Merge remote-tracking branch 'refs/remotes/origin/master' into featur… Jan 30, 2018
LICENSE.txt ported to Revit 2015 and added an MIT license file May 8, 2014
README.md mention DanRumery's Pullrequest in the credits... Sep 8, 2017
RevitPythonShell.sln Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_2014.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_2015.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_2016.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_2017.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_2018.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_Vasari_Beta1.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_Vasari_Beta2.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_Vasari_Beta3.iss Project directory cleanups for clarity Mar 6, 2018
Setup_RevitPythonShell_Vasari_TP2.1.iss Project directory cleanups for clarity Mar 6, 2018
todos.todo Project directory cleanups for clarity Mar 6, 2018

README.md

RevitPythonShell

The RevitPythonShell adds an IronPython interpreter to Autodesk Revit and Vasari.

The RevitPythonShell (RPS) lets you to write plugins for Revit in Python, my favourite scripting language! But even better, it provides you with an interactive shell that lets you see the results of your code as you type it. This is great for exploring the Revit API while writing your Revit Addins - use this in combination with the RevitLookup database exploration tool to become a Revit API Ninja :)

Features

  • interactive IronPython interpreter for exploring the API
    • with syntax highlighting
    • autocompletion (press CTRL+SPACE after a period)
    • based on the IronLab project
  • batteries included! (Python standard library is bundled as a resource in the RpsRuntime.dll)
  • full access to the .NET framework and the Revit API
  • configurable "environment" variables that can be used in your scripts
  • save "external scripts" for reuse and start collecting your awesome hacks!
  • run scripts at Revit startup
  • deploy scripts as standalone Revit Addins
  • lookup() function for snooping Element, ElementSet and ElementId objects in RevitLookup

Installation

Older versions:

Contribute

Support

Getting started:

Learn some python:

Learn about the Revit API:

Tutorials recommended by the community:

You can find sample scripts here:

License

This project is licensed under the terms of the MIT License.

Credits

  • Daren Thomas (original version, maintainer)
  • Zachary Kron (original port to Vasari)
  • Akimitsu Hogge (original port to Vasari)
  • Joe Moorhouse (interactive shell was taken from his project IronLab)
  • Jason Schaeffer (port to Revit 2011)
  • @DanRumery improved autocompletion with PR #59
  • many, many users with questions, bug reports etc!

Also, many thanks to the Chair for Architecture & Building Systems for making this project possible.

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