Message 1 of 3
Refresh After using ScreenUpdating = false/true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.