one by one update object in drawing

one by one update object in drawing

Anonymous
Not applicable
327 Views
1 Reply
Message 1 of 2

one by one update object in drawing

Anonymous
Not applicable

Hi Guys,

 

I am creating a program place object on drawing by using loop. I may need to place 1000 object. at the moment the drawing graphic part doesn't update which placing, it update after placed them all.

 

I call my func from a PaletteSet, after place them all i use 

acApp.DocumentManager.MdiActiveDocument.Editor.Regen()

 

I would like to see object appear on the drawing while placing them, like object.update in COM

 

Any idea?

 

Thanks very much

0 Likes
328 Views
1 Reply
Reply (1)
Message 2 of 2

Hallex
Advisor
Advisor

Try somethig like

 

While

 

< your code to place single stuff >

 

trans.QuyeForGrafhicsFlush()

 

End while

 

doc.TransactionManager.FlushGraphics()

 

trans.Commit()

 

ed.Updatescreen()

 

_____________________________________
C6309D9E0751D165D0934D0621DFF27919
0 Likes