Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
NSBowser
659 Views, 2 Replies

Refresh After using ScreenUpdating = false/true

For performance, many people suggest disabling ScreenUpdating while your program is running to reduce the overhead of generating the graphics.

 

Sample Code:

// Initialize
_invApp.ScreenUpdating = false;

// Program Code Here

// Cleanup
_invApp.ScreenUpdating = true;

However, after the program has run, Inventor acts as if it needs a repaint. with changes to the browser not appearing, new document tabs not showing, etc.

 

I've read a few posts that dance around the topic, with the best suggestion appearing to be Minimize/Maximize the window after the program is done.

 

Has anyone else found a way to correct this, perhaps with some sort of repaint force or otherwise?

 

Thanks!


Best of Luck

---------------------------------------------------------------------------------------------------------------------------------
If you find this reply helpful or insightful, please use the 'Accept as Solution' or 'Kudos' button below.