oops, i didn't check the preview, this is how it was supposed to be formated
i have a simple routine, that sets background color fill to all dimension styles, that exist in current drawing here's the code:
Public Sub Po_Setup() Dim db As Database = Application.DocumentManager.MdiActiveDocument.Database Using trans As Transaction = db.TransactionManager.StartTransaction Dim dst As DimStyleTable = trans.GetObject(db.DimStyleTableId, OpenMode.ForRead) For Each oID In dst Dim dstr As DimStyleTableRecord = trans.GetObject(oID, OpenMode.ForWrite) dstr.Dimtfill = 1 Next trans.Commit() End Using End Sub
it looks really innocent, but sometimes, after i run it and then zoom out, i get something like on the attached screen shot
when i save the drawing, close it and open again, it looks alright again
any ideas, why this happens?
edit, maybe this time it will work, this new forum design doesn't work in Opera
If you haven't tried this on more than one system with different graphics configs,
I'd start there to rule out any possibility that it's related to the graphics config on
the system (hardware and drivers).
I only tried it on my system, and then I was afraid to deploy it
I can't check the HW relation, because it happens only occasionally
but I can imagine how this can scare the hell out of some colleagues, if I release it and it happens to them
I might have accused the wrong routine
there was one, that was ran before this one and I didn't dispose the transaction explicitly, so maybe the garbage collector didn't have his job done properly