.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cls_Ger.Var_Des_Act = Application.DocumentManager.open in Autocad 2013

3 REPLIES 3
Reply
Message 1 of 4
WeCanAPF
661 Views, 3 Replies

Cls_Ger.Var_Des_Act = Application.DocumentManager.open in Autocad 2013

Hello

 

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

 

Thank you

 

3 REPLIES 3
Message 2 of 4
fieldguy
in reply to: WeCanAPF

Try >>here<<.

Message 3 of 4

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

Message 4 of 4
beeb.pm.Net
in reply to: WeCanAPF

Dim acDocMgr As DocumentCollection = Application.DocumentManager
Dim This As Document = DocumentCollectionExtension.Open(acDocMgr, "D:\test.dwg", True)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost