Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

C# equivalent to Application.ScreenUpdating

Status
Not open for further replies.

grisel360

Mechanical
Nov 1, 2011
7
Hello everyone
I recall from VBA there is an option to avoid these screen changes while a macro's being executed. Application.ScreenUpdating = False
Then after macro is done you do Application.ScreenUpdating = true again.

This also enhances a bit the performance (time reduction).
I wish to know if there is something similar for CATIA on C#.NET.
I tried with SuspendLayout(); and ResumeLayout();
also with catia.RefreshDisplay = false ... but no luck with any of those.

The code starts on drawing A
1. Opens a drawing B and copies an specific detail on specific sheet
3. Paste in drawing A background
4. Closes drawing B

I dont want the user sees screen changes, just run this on the back

Thank you all in advance.
 
Replies continue below

Recommended for you

Not much you can do with Automation as it's tied with visualization.

CATIA.Visible=false?
 
Thanks Little Cthulhu, I tried but it creates an undesired effect, as if CATIA's been closed, then after 12 seconds (when code is over), it opens again. This might confuse some users, I'd like to keep it open, but somehow "frozen"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor