.NET

Reply
*Norman Yuan
Post 11 of 25

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
11 Posts
0 Kudos
Registered: ‎06-21-2007
Post 12 of 25

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
11 Posts
0 Kudos
Registered: ‎06-21-2007
Post 13 of 25

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
11 Posts
0 Kudos
Registered: ‎06-21-2007
Post 14 of 25

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
26 Posts
0 Kudos
Registered: ‎08-25-2010
Post 15 of 25

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
15 Posts
0 Kudos
Registered: ‎04-30-2009
Post 16 of 25

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
26 Posts
0 Kudos
Registered: ‎08-25-2010
Post 17 of 25

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
15 Posts
0 Kudos
Registered: ‎04-30-2009
Post 18 of 25

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
582 Posts
91 Kudos
Registered: ‎04-11-2010
Post 19 of 25

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
15 Posts
0 Kudos
Registered: ‎04-30-2009
Post 20 of 25

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