Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.72 KB

wip-misc.md

File metadata and controls

50 lines (33 loc) · 1.72 KB

Python For Revit

A collection of resources for Python-Revit lovers

Summary

Frequently Asked Questions


What are the out-of-the-box lines in the Dynamo?
import clr  
# imports Common Language Runtime library .This will serve as a bridge between python and the .NET wold
# See this: http://ironpython.net/documentation/dotnet/dotnet.html

clr.AddReference('ProtoGeometry')
# Loads the Protogeometry dll (.net assembly) so Python can use it

from Autodesk.DesignScript.Geometry import *
# Imports Geometry Classes from the DesignScript assembly (Protogeometry)
# this gives you access to Dynamos built in Geometry classes and more.

dataEnteringNode = IN
# This is just telling data entering this node will be stored in a variable called IN.
# You don't actually need this. Go ahead and delete it, nothing will change.
Recommended reading

Where can I find the list of modules in the Revit API?

You can download the Full API Documentation as well as many examples (no python examples, unfortunatelly) from the Autodesk Developer Network's website

The official documentation is also avaiable online at: RevitAPIdocs.com