Is VBA too fast? Greyed out Drawing Windows
Is VBA too fast? Greyed out Drawing Windows
(OP)
I am suddenly having a bazaar issue. I have written a script which opens particular DXF files in a manner that I want to have them opened. But some change I recently made has caused many of the windows for the files to open in a greyed-out manner with nothing visible in the drawing.
Debugging this script and stepping through it shows no errors. HOWEVER, stepping through line by line also NEVER reproduces the error of greyed out documents. Before I choose the ridiculous solution of adding arbitrary wait points into my code, I need to investigate whether there is some cause for this issue that is known. Searching "greyed out" in this forum yields a few suggestions, but none of them seem to apply specially to my problem.
Does anyone have an idea?
Debugging this script and stepping through it shows no errors. HOWEVER, stepping through line by line also NEVER reproduces the error of greyed out documents. Before I choose the ridiculous solution of adding arbitrary wait points into my code, I need to investigate whether there is some cause for this issue that is known. Searching "greyed out" in this forum yields a few suggestions, but none of them seem to apply specially to my problem.
Does anyone have an idea?





RE: Is VBA too fast? Greyed out Drawing Windows
RE: Is VBA too fast? Greyed out Drawing Windows
RE: Is VBA too fast? Greyed out Drawing Windows
Yes, sometimes happen this issue, vb is to fast and this can indicate that your video drivers are not updated (or simply this is the limit of your video card).
Regards
Fernando
https://picasaweb.google.com/102257836106335725208
https://picasaweb.google.com/103462806772634246699...
RE: Is VBA too fast? Greyed out Drawing Windows
And why would that be influenced by running the script from a Customized Button on a Toolbar, and not influenced by when I run the script from running it from the Visual Basic Editor using F5?
RE: Is VBA too fast? Greyed out Drawing Windows
Apparently CATIA.DisplayRefresh does not work well when run from the Customized Buttons on the Toolbars. I removed all mentions of that call from anywhere in my scripts and things began working smoothly.