Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#Copyright(c)2020,chuongho
#@chuongmep,https://chuongmep.com/
import clr
clr.AddReference('ProtoGeometry')
clr.AddReference('RevitAPI')
clr.AddReference("RevitServices")
from Autodesk.DesignScript.Geometry import *
from Autodesk.Revit.DB import *
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
# Document
doc = DocumentManager.Instance.CurrentDBDocument
uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment