Hiding Specific Annotation Family but not working in dependent views

Afternoon All,

I have a script for hiding specific generic annotations type and seems to work fine for hiding them in independent/parent views but wont hide them in dependent views. Any ideas? I’m assuming its something in the python scripting but that’s a little over my head at the moment. I have attached the script below. Any Help Would be greatly appreciated.

BCE - Hide-Unhide Comments in All Views.dyn (31.7 KB)