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.
- Iron Python Documentation
- DesignSCript Syntax
- DesignScript Guide
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