Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 13, 2020 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuongmep/6e32bcd2e0107c11d5d35bdc7a101571 to your computer and use it in GitHub Desktop.
Save chuongmep/6e32bcd2e0107c11d5d35bdc7a101571 to your computer and use it in GitHub Desktop.
#Copyright(c) 2020, chuongho
# @chuongmep, https://chuongmep.com/
#Created by Chuong.Ho
import clr
clr.AddReference("RevitAPI")
clr.AddReference("RevitAPIUI")
from Autodesk.Revit.UI import *
from Autodesk.Revit.DB import *
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
uidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument
from System.Collections.Generic import List
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment