Active view not refreshed

Hello,
i tried to make a code that exports schedule of active view into Excel and thats fine. But when i open another schedule in same revit file, the active view is not refreshed to new schedule but remains on previous schedule. I am sharing this screenshot. Though i am using active view node from springs which has refresh option. Also, when i switch between true and false it refreshes view but i am searching for an automated way.

with dynamo player the views are refreshed automatically without the yes / no

1 Like