The Python script below is one I'm using to capture the view orientation of one 3D view and set the view orientation of a list of views to match the captured one. It works perfectly.....the first time. On subsequent runs after the first view is changed, the list of views do not update themselves. This does not appear to have anything to do with the Unlock and Save/Lock, as removal of those lines does not improve the behavior at all.
At this point, my remedy is to disconnect one of the script inputs, run the dyn, reconnect, then run again. Then it treats it like a "first run" and the views update...once. Then it goes back to not working.
I am not a very good Python writer, so is there something I am missing that I need to do to clear some value from the memory or something? or is there some sort of view refresh that needs to happen in Revit?