Jul 1, 2021
Get ViewSheet from a given View
Sometimes you might want to get a Sheet of your Active view, or any other. Check out this snippet of a function that will return ViewSheet of any given View.
About snippet:
I assume you were looking on the internet how to get ViewSheet
from a given View
just like I was doing it before I decided to create my own solution and post it for you.
I feel like there is not much for me to explain since most of the work here is done with FilteredElementCollector(doc).WherePasses(filter)
and filters deserve their own article and even a video explaining them with lots of examples.
So you can use the code below and adapt it in your own scripts.
PyRevit example script
Want to Learn More?
🔥 Amazing Revit API Resources!
Join Revit API
Newsletter Today!
Join Us!
which is already read by 4500+ people!
Get short Revit API Lessons and Tips directly in your mail!