ODS module does not work on IronPython, and i don’t know the way to add Revit modules to regular Python.Whatever …

''' cut-n-paste from the net
 @author: ejs
 '''
 import clr
 import sys
 clr.AddReference('RevitAPI')
 clr.AddReference('RevitAPIUI')
 from Autodesk.Revit.DB import *
 from Autodesk.Revit.DB.Architecture import *
 from Autodesk.Revit.DB.Analysis import *
 
 #sys.path.append(r'C:\Python\3.4\Lib\site-packages')
 
 #from odslib import ODS
 
 #ods = ODS()
 
 uidoc = __revit__.ActiveUIDocument
 doc = __revit__.ActiveUIDocument.Document
 
 cView = uidoc.ActiveView
 
 collector = FilteredElementCollector(doc)
 collector = FilteredElementCollector(doc).OfClass(ViewSchedule);
 
elems=collector.ToElements()
 n_elems=len(elems)
 
 for elem in elems:
     if cView.Id == elem.Id: Read the rest of this entry »