Hi all,
as per subject, how do I retrieve the view where a Revisions Cloud is located?
I think it is a Pyton only solution, unless there is a node I am not familiar with?
thank you
Regards
Hi all,
as per subject, how do I retrieve the view where a Revisions Cloud is located?
I think it is a Pyton only solution, unless there is a node I am not familiar with?
thank you
Regards
Python is not necessary per se. You can use the Element.OwnerView node from the Clockwork package.
There is a Pyhton script inside, if you prefer:
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.Elements)
def GetOwnerView(item):
if hasattr(item, "OwnerViewId"): return item.Document.GetElement(item.OwnerViewId)
else: return None
items = UnwrapElement(IN[0])
if isinstance(IN[0], list): OUT = [GetOwnerView(x) for x in items]
else: OUT = GetOwnerView(items)