See if this works:
Document doc = Application.DocumentManager.MdiActiveDocument;
object oAcadDoc = doc.AcadDocument;
oAcadDoc.GetType().InvokeMember( "Regen",
BindingFlags.InvokeMethod, null, oAcadDoc,
new object[] { 1 } );
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009
http://www.acadxtabs.com
Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm
wrote in message news:6051136@discussion.autodesk.com...
I would also like to add that REGENALL does not seem to have the same desired effect as REGEN, therefore i need to call REGEN on each viewport, or something equivalent. Many Thanks Ross Edited by: fishtoasty on Oct 14, 2008 4:30 PM