However, Geometry is still being drawn to the screen. I was wondering if maybe I have an error in the way I’m writing this? I’ve seen a few different documentations for this including: rs.EnableRedraw(False), rs.EnableRedraw = “False”. I’ve tried a few of them but with no luck. I’m using Python.
You should not use rs.EnableRedraw = True. You should use rs.EnableRedraw(True). The first assigns True to the function definition, thereby making the EnableRedraw() function later unusable. You should just call it, with the mentioned code.
Thanks for your response. I’ve already solved this issue though as seen above.
It seems like (at least for me), rs.EnableRedraw(True) is not working in Rhino 6 WIP, as you get the error “bool is not callable”, so I used “scriptcontext.doc.Views.RedrawEnabled = False” instead, and it works fine.
Giulio’s reply is accurate and correct. Your script was reassigning the function EnableRedraw into a bool variable by calling rs.EnabledRedraw = False. Your alternate approach will also work, and is pretty much exactly what the rs.EnableRedraw function does.