.NET

Reply
*Norman Yuan
Message 11 of 25 (1,925 Views)

Re: Error Decrypting Data (Acad 2011)

04-07-2010 09:03 PM in reply to: hawesan
Do you run the code from an external application (exe) or inside AutoCAD
("netload" it into AutoCAD)?

"harrisonpm" wrote in message news:6369089@discussion.autodesk.com...
Hi Tony
Here is the code that opens the drawing attached
Contributor
hawesan
Posts: 11
Registered: ‎06-21-2007
Message 12 of 25 (1,925 Views)

Re: Error Decrypting Data (Acad 2011)

04-07-2010 09:47 PM in reply to: hawesan
Hi Norman

The code is run from within autocad (acad 2011).

Thanks Peter
Contributor
hawesan
Posts: 11
Registered: ‎06-21-2007
Message 13 of 25 (1,925 Views)

Re: Error Decrypting Data (Acad 2011)

04-07-2010 09:51 PM in reply to: hawesan
Hi Tony

This is another drawing (saved as a dwg from microstation) gives the same problem

Peter
Contributor
hawesan
Posts: 11
Registered: ‎06-21-2007
Message 14 of 25 (1,925 Views)

Re: Error Decrypting Data (Acad 2011)

04-08-2010 05:00 PM in reply to: hawesan
Tony

I have actually fixed this problem, it seems to have been a lisp file that I had in my startup suite contents that caused the error, still not really sure why but my .net macro now works on all drawings it open up. Thanks for your help in trying to solve this problem.

Peter
Active Contributor
skeletank
Posts: 26
Registered: ‎08-25-2010
Message 15 of 25 (1,825 Views)

Re: Error Decrypting Data (Acad 2011)

10-20-2010 12:13 PM in reply to: hawesan

I am running into this same problem.  I tried the COM Interop example that Tony Tanzillo gave but it still throws that error when I try to open it.  My file was generated by a third-party tool as well.

Contributor
Aaron.Warnke
Posts: 15
Registered: ‎04-30-2009
Message 16 of 25 (1,778 Views)

Re: Error Decrypting Data (Acad 2011)

10-29-2010 11:15 AM in reply to: skeletank

I'm having the same problem too.  Seem to only happen with dwg files created from something other than autodesk products.  Drawings open fine directly through AutoCAD (2011), but noth with vba.  Also works fine with 2010. 

Active Contributor
skeletank
Posts: 26
Registered: ‎08-25-2010
Message 17 of 25 (1,776 Views)

Re: Error Decrypting Data (Acad 2011)

10-29-2010 11:30 AM in reply to: Aaron.Warnke

I ended up using a workaround for the problem.  The operation that I needed to do did NOT require opening the drawing so I just opened it using Database.ReadDwgFile.  It didn't throw any exceptions by doing it this way.

Contributor
Aaron.Warnke
Posts: 15
Registered: ‎04-30-2009
Message 18 of 25 (1,771 Views)

Re: Error Decrypting Data (Acad 2011)

10-29-2010 11:33 AM in reply to: skeletank

Thanks for the quick reply,  but I need to open the drawing. I wonder why it is different between 2010 and 2011?

 

Valued Mentor
gasty1001
Posts: 450
Registered: ‎04-11-2010
Message 19 of 25 (1,758 Views)

Re: Error Decrypting Data (Acad 2011)

10-31-2010 01:57 PM in reply to: hawesan

This problem is related to the DWGCHECK system variable, set it to 2 , the default is 1, this problem also apears in VBA but with a different error message, something like "Filer error" , but the "solution" is the same set DWGCHECK=2.

 

Regards,

 

Gaston Nunez

Contributor
Aaron.Warnke
Posts: 15
Registered: ‎04-30-2009
Message 20 of 25 (1,737 Views)

Re: Error Decrypting Data (Acad 2011)

11-01-2010 07:59 AM in reply to: gasty1001

It works!

 

Thanks alot Gaston!

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