When running the script here, the display updates as expected in 7.37.24107.15001, 2024-04-16
but not in 8.13.24317.13001, 2024-11-12.
A workaround is to replace
sc.doc.Views.Redraw()
with
sc.doc.Views.RedrawEnabled = True
or sc.doc.Views.EnableRedraw
with particular arguments.
RedrawEnabled doesn’t need to previously be set to False.