I have a script that currently finds all placed generic annotation instances of a given family type, then uses archilab Elements.OwnerView to get the owner view for each. Then it hides the instances in those owner views.
The problem I am facing is when the owner view is a dependent view. The script detects the parent view as the owner rather than the dependent view that is placed on a sheet. So, the annotation is not hidden as desired.
Is there some way to detect this?
There is a method to get the dependent view Ids of a given view, GetDependentViewIds
. You’d use that on the parent view to get a list of all other views to modify for a given element.
Clockwork has a node, View.DependentViews
, that uses this method or you can use Rhythm’s View.ParentView
to work backwards and accomplish the same thing.
1 Like
Worked perfectly. I had found an old thread from 2017 where you and @awilliams had put together the Python code. I was working in that direction until you mentioned Clockwork had a node.
Noice!
Thanks!
2 Likes