This is the worst kind of problem. Where something has worked, should work and does work and then stops working. . . in certain circumstances.
I have an app that is all of a sudden giving me an "eNotApplicable" error when I try to select entities.
The error is because the system thinks that the drawing is not in the active editor.
When I step through this code on a 64 bit development machine the messagebox shows this:
string mess = string.Empty;
Autodesk.AutoCAD.ApplicationServices.Document odoc = acadApp.DocumentManager.Open(finFile, false);
// acadApp.DocumentManager.MdiActiveDocument = odoc;
mess = "1-" + odoc.Database.Filename + "\n";
mess += "2-" + acadApp.DocumentManager.MdiActiveDocument.Name + "\n";
mess += "3-" + HostApplicationServices.WorkingDatabase.Filename;
On a 32 bit system this happens:
Any ideas as to why this strange behaviour?
Is there a way to force MdiActiveDocument to match WorkingDatabase?
Windows 7 (32/64)
AutoCAD 2013 (32/64)