This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import clr | |
clr.AddReference('RevitAPI') | |
from Autodesk.Revit.DB import * | |
from Autodesk.Revit.DB.Structure import * | |
clr.AddReference('RevitAPIUI') | |
from Autodesk.Revit.UI import * | |
clr.AddReference('System') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# collection of Dynamo Python functions. | |
# credits: archi-lab, MEPover, Bimorph, Clockwork, Rhythm and many more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# collection of Dynamo Python functions. | |
# credits: archi-lab, MEPover, Bimorph, Clockwork, Rhythm and many more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' Creates a Drafting View''' | |
from Autodesk.Revit.DB import Transaction, Element | |
from Autodesk.Revit.DB import FilteredElementCollector | |
# Drafting Views | |
from Autodesk.Revit.DB import ViewFamilyType, ViewDrafting, Element | |
from Autodesk.Revit.DB import ViewFamily | |
uidoc = __revit__.ActiveUIDocument | |
doc = __revit__.ActiveUIDocument.Document |