View of Detail items


I was looking for a node to get views of specific detail items.
As an example i have 5 views (a,b,c,d,e) in my revit project. However there is only filled regions (detail items) at view c and e. I was looking for a node to get c and e which only contains detail items.


Element.OwnerView node i think from clockwork…!

i got this somewhere u can also try using this code

import clr

import RevitServices
from RevitServices.Persistence import DocumentManager
doc =  DocumentManager.Instance.CurrentDBDocument

if isinstance(IN[0], list):
	tags = UnwrapElement(IN[0])
	tags = [UnwrapElement(IN[0])]

listout = []

for x in tags:
	Id = x.OwnerViewId
	view = doc.GetElement(Id)

OUT = listout


Many thanks. Works great.