.NET

Reply
*Norman Yuan
Message 11 of 25 (1,996 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,996 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,996 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,996 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,896 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,849 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,847 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,842 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?

 

Distinguished Mentor
gasty1001
Posts: 526
Registered: ‎04-11-2010
Message 19 of 25 (1,829 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,808 Views)

Re: Error Decrypting Data (Acad 2011)

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

It works!

 

Thanks alot Gaston!

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.