Skip to content

Instantly share code, notes, and snippets.

@chuongmep
Created June 13, 2020 12:40
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/ce63c2505d8f710079e667c2befe2c2a to your computer and use it in GitHub Desktop.
Save chuongmep/ce63c2505d8f710079e667c2befe2c2a to your computer and use it in GitHub Desktop.
#Copyright(c) 2016, Dimitar Venkov
# @5devene, dimitar.ven@gmail.com
import clr
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
OUT = doc.ActiveView.ToDSType(True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment