I developed an application to manage some files, I did it for Autocad 2012 and it worked just fine, but now the users upgraded to Autocad 2013 and I have to change it.
After some time installing and putting things to work, everything is working fine except for the command to open files.
I use this code to open files:
Cls_Ger.Var_Des_Act = Application.DocumentManager.open(Loc_Fch)
But now in 2013 it says that open is not a member :-(
I'm not an expert in .net development or in autocad development, sorry
Any help would be great
Your existing call to DocumentCollection.Open() will still work, if you add a reference to AcMgd.dll to your project.
In AutoCAD 2013, most of what was in AcMdg.dll is now in AcCoreMgd.dll, but the Open() method that is missing has not been moved, but has been made an extension method of DocumentCollectionExtension. You can still call Open() as if it were a member of DocumentCollection() as long as you have a reference to AcMgd.dll
Dim acDocMgr As DocumentCollection = Application.DocumentManager
Dim This As Document = DocumentCollectionExtension.Open(acDocMgr, "D:\test.dwg", True)
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register