I previously found that CurrentDoc.Editor.Regen() did not work well in my application so I was using a different method.
I have found that the following are no longer available in 2013. I'm looking through the ObjectARX SDK documentation right now but so far not able to find where these methods have gone.
Solved! Go to Solution.
I think you'll find these methods/properties have been moved to extension methods in AutoCAD 2013. See the video on .NET migration I posted here for an explanation: http://adndevblog.typepad.com/autocad/2012/04/migr
I had previously viewed this presentation. The presentation states that the What's New section of the ObjectARX documentation reviews all of the new extension classes. In fact the What's New section lists only the DocumentExtension class.
I was able to find the GetAcadDocument function in the DocumentExtension class. This function apparently wraps an ObjectARX class which isn't named (searching the ObjectARX SDK for that name comes up with nothing). This function returns an Object.
As with previous versions the class AcadDocument isn't documented but the acadi.h file lists the functions available including Regen which accepts one arguement which can be either acActiveViewport = 0 or acAllViewports = 1.
Imports Autodesk.AutoCAD.ApplicationServices.Application Imports Autodesk.AutoCAD.ApplicationServices.DocumentExten
sion Dim AcadDoc As Object AcadDoc = GetAcadDocument(DocumentManager.MdiActiveDocument) AcadDoc.Regen(1)
I was able to find the window extension by guessing at its location and the following functions should provide the correct information.
Imports Autodesk.AutoCAD.Windows.WindowExtension Imports Autodesk.AutoCAD.ApplicationServices Dim AcadTopLeft, AcadMid As System.Drawing.Point Dim AcadSize As System.Drawing.Size AcadTopLeft = GetLocation(Application.MainWindow) AcadSize = GetSize(Application.MainWindow)