Skip to content

Instantly share code, notes, and snippets.

@imAliAsad
Last active June 3, 2018 06:25
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 imAliAsad/06ab2b2b0d8fe40151b39bf7d8a754a5 to your computer and use it in GitHub Desktop.
Save imAliAsad/06ab2b2b0d8fe40151b39bf7d8a754a5 to your computer and use it in GitHub Desktop.
Get all elements in active view - Revit api C#
FilteredElementCollector allElementsInView = new FilteredElementCollector(document, document.ActiveView.Id);
IList elementsInView = (IList)allElementsInView.ToElements();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment