.NET

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

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

372 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: 367
Registered: ‎03-31-2005
Message 2 of 4 (351 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 (338 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 (211 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)

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community