ScreenUpdating

ScreenUpdating

SRSDS
Advisor Advisor
2,320 Views
3 Replies
Message 1 of 4

ScreenUpdating

SRSDS
Advisor
Advisor

Is there a way to turn off screenupdating until a process is complete.

Similar to Application.ScreenUpdating = False used in Excel.

 

I make changes to several blocks and you can watch as it moves through each one. I'm guessing it might be faster if the drawing doesn't redraw after each.

0 Likes
2,321 Views
3 Replies
Replies (3)
Message 2 of 4

arcticad
Advisor
Advisor

I posted the solution here

http://forums.autodesk.com/t5/NET/regen/m-p/2646539/highlight/true#M18257

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 3 of 4

Hallex
Advisor
Advisor

Not sure about test this code as well

 

Sub test()

 

Dim tm as TransactionManger =doc.TransactionManager

 

For Each....


'' [ the rest your code here ]


Next

 

' then before of committing the transaction add these lines:

 

tm.QueueForGraphicsFlush()

 

tm.FlushGraphics()

 

ed.UpdateScreen()

 

tr.Commit()

 

End Sub

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes
Message 4 of 4

SRSDS
Advisor
Advisor

I have all my routines starting and finishing  transactions which is possibly be the problem after reading through the thread arcticad posted.

 

Rearrange things to do everything under a single transaction might be the answer.

 

If not I'll try both your methods.

 

Frighteningly slow. You have to sit back and wait for it do it's thing.

0 Likes