Hi, I’m trying to hide or unhide certain elements across multiple views or sheets. I’m running into an issue with the view input—using the “Active view” node works as expected, but when I use “Element.OwnerView,” nothing changes. Does anyone have a solution for this?
Update: I found the reason, node “OwnerView” gets the parent view, while node “Active View” gets the dependent child view. Now, I need to find a solution to hide it in the child view. If anyone has experience with this, please share your suggestions.
seems you use genius loci view.set.element.overide …guess you need OverrideGraphicSettings in override, but not that one OOTB as give Revit.Filter.OverrideGraphicSettings…genius loci want Autodesk.DB..Filter.OverrideGraphicSettings , but should have a node for that as well
Minor clarification: View dependent objects have an owner view (it’s a Revit property) - for views with dependency, the owner view will always be the parent view. The ActiveView node, however, is just whichever view you currently have active in the Revit UI. If you’re on the dependent view trying to hide the object, then the active view will of course be that dependent view.
As for working around this, you just need to do as I mentioned in the linked post: get the dependent views of the element’s owner view and hide the element in each of those views. That’s assuming you don’t want the element hidden in some dependent views but visible in others. If that is the case, you’ll need to identify the specific views from the list of dependencies and control them individually.
