You didn't post the code showing how you used the 'voodoo' that doesn't
help.
Also, is your code running from a registered command method or from the
application context?
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010
http://www.acadxtabs.com
Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");
wrote in message news:6269057@discussion.autodesk.com...
Could somebody please tell me how to force a graphics update, using the .net
api, on a Dimension object after changing one of it's properties?
After I change the object the graphics on the screen does not update
although the property palette shows for the "Dim line color" property the
value I've just assigned "Red"
The dim line on the screen shows still as green though 😞
If I move the object using the Acad command line "move"command then he
dimension will be updated properly.
using (Transaction trans = acadDoc.TransactionManager.StartTransaction())
{
Dimension dimObject = trans.GetObject(objId, OpenMode.ForWrite) as
Dimension;
dimObject.Dimclrd = Color.FromColorIndex(ColorMethod.ByAci, 1);
dimObject.dimObject.RecordGraphicsModified(true);
trans.Commit();
}
Seemeingly none of the "vodoo" below will help 😞
dimObject.Draw()
acadDoc.TransactionManager.QueueForGraphicsFlush();
acadDoc.TransactionManager.FlushGraphics();
AcadApp.UpdateScreen();
Thanks
Peter