.NET

Reply
New Member
WeCanAPF
Posts: 1
Registered: ‎06-25-2012
Message 1 of 4 (397 Views)

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

397 Views, 3 Replies
06-25-2012 11:13 AM

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

 

Valued Mentor
fieldguy
Posts: 379
Registered: ‎03-31-2005
Message 2 of 4 (376 Views)

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

06-26-2012 07:46 AM in reply to: WeCanAPF

Try >>here<<.

Valued Mentor
DiningPhilosopher
Posts: 370
Registered: ‎05-06-2012
Message 3 of 4 (363 Views)

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

06-26-2012 03:04 PM in reply to: WeCanAPF

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

Member
beeb.pm.Net
Posts: 3
Registered: ‎01-07-2012
Message 4 of 4 (236 Views)

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

01-26-2013 02:44 AM in reply to: WeCanAPF

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!