• Stars
    star
    449
  • Rank 96,799 (Top 2 %)
  • Language
    C#
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An IronPython scripting environment for Autodesk Revit and Vasari

RevitPythonShell

Revit API Platform License: MIT

ReSharper Rider Visual Studio 2022 .NET Framework

Publish Github All Releases HitCount

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

IronPython 3

IronPython 3.4 uses Python 3.4 syntax and standard libraries and so your Python code will need to be updated accordingly. There are numerous tools and guides available on the web to help porting from Python 2 to 3.

IronPython 3 targets Python 3, including the re-organized standard library, Unicode strings, and all of the other new features.with user upgrade from IronPython 2 to IronPython 3, please follow Upgrade from IronPython 2 to IronPython 3.

Various differences between IronPython and CPython can follow at Differences IronPython and CPython.

Installation

Please follow last release at section Release support version Support From Revit 2018-2024.

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)
  • Ehsan Iran-Nejad (@eirannejad) countless improvements, the awesome pyRevit tool and a special thanks for helping maintain RPS!
  • @DanRumery improved autocompletion with PR #59
  • Petr Mitev (@mitevpi) ported to Revit 2019 with RP #86
  • Alvaro Ortega Pickmans (@alvpickmans) refactor to sdk csproject and release for Revit 2020 PR #101
  • @hdm-dt-fb added set_font_sizes function for presenting RPS (PR #77)
  • Nice3Point for process CI/CD
  • Chuong Mep a people like maintain for project open source.
  • 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!

More Repositories

1

CityEnergyAnalyst

The City Energy Analyst (CEA)
Python
179
star
2

RC_BuildingSimulator

A Resistance Capacitance Model for an Energetic Simulation of a Building
Python
95
star
3

hive

Rhino Grasshopper plug-in for quick & dirty building simulation
C#
31
star
4

Wireless-Sensor-Network

Wireless Sensor Network for Research
JavaScript
26
star
5

esoreader

A python module for reading *.eso files generated by EnergyPlus
Python
25
star
6

desigo-influxdb-middleware

Python script for coupling the Siemens Desigo CC REST API and InfluxDB
Jupyter Notebook
24
star
7

RegionalEnergyAnalyst

Regional Energy Analyst, the first data-driven software for the analysis of the future energy consumption of buildings across sectors, cities and regions
HTML
15
star
8

honey-badger

honey-badger is a build system for Python based Rhino/Grasshopper plugins
Python
8
star
9

CityEnergyAnalyst-GUI

This is the official Graphical User Interface of the City Energy Analyst (CEA)
JavaScript
7
star
10

idf-plotter

plot a graph of the named objects in an EnergyPlus IDF file in DOT format
Python
6
star
11

design-performance-workflows

a collection of VisTrails modules for running (co-) simulations with Revit, EnergyPlus and CitySim
Python
5
star
12

sia_380-1-full_version

This code is the python implemented form of SIA380-1. It is not a simplified version.
Python
4
star
13

umem-jbps-paper

Urban and building multiscale co-simulation: case study implementations on two university campuses
Jupyter Notebook
4
star
14

ASF_Simulation

Numerical Simulation of the ASF to determine its energy saving potential and optimal configurations
HTML
4
star
15

Surface-Node-Radiation-Model

A simple calculation of form factor, radiation and convection heat transfer between activated surfaces
Jupyter Notebook
3
star
16

bipv-tool

Tool for the planning of BIPV Systems
Python
3
star
17

MCP3911_Arduino_Library

C++
3
star
18

test-energyplus-fmi-interface-max-variables

create test code to find the maximum amount of variables that can be exported / imported with the FMI interface of EnergyPlus
C++
3
star
19

CaPyBaRA

Calibration in Python using Bayesian Regression and Analysis (CaPyBaRA)
Python
3
star
20

umem-jbps-data

Final Journal Publication for A/S UMEM
Jupyter Notebook
3
star
21

Jayathissa_Dissertation

PhD Dissertation, can be used as an ETH Latex Template
PostScript
2
star
22

3for2-iaq-study

Indoor Air Quality Analysis of 3for2 Project
Jupyter Notebook
2
star
23

DesignOfExperiments

MATLAB
1
star
24

cea-plugin-template

A template repository for create CEA plugins
Python
1
star
25

FCL-Exhibition-2023-Arduino

Arduino Installation and AR App
TeX
1
star
26

cmip6_and_buildings

Jupyter Notebook
1
star
27

cea-grasshopper

A Rhino/Grasshopper interface to the City Energy Analyst (CEA) using honey-badger
Python
1
star