Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Nov 1, 2011
Messages
7
Location
MX
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.
 
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

Back
Top