Created
June 13, 2020 12:53
-
-
Save chuongmep/6e32bcd2e0107c11d5d35bdc7a101571 to your computer and use it in GitHub Desktop.
This file contains 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
#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