.NET

Reply
Active Contributor
skeletank
Posts: 26
Registered: ‎08-25-2010
Message 21 of 25 (864 Views)

Re: Error Decrypting Data (Acad 2011)

11-01-2010 08:34 AM in reply to: Aaron.Warnke

Works for me as well.  Thank you very much Gaston! :smileyhappy:

Mentor
matus.brlit
Posts: 246
Registered: ‎03-11-2008
Message 22 of 25 (828 Views)

Re: Error Decrypting Data (Acad 2011)

11-10-2010 12:12 AM in reply to: hawesan

or you can just catch the exception, i guess

 

you don't get errors from handled exceptions and you can also test if the problem is because of different application creating the drawing, or because of the potential errors

Distinguished Mentor
gasty1001
Posts: 581
Registered: ‎04-11-2010
Message 23 of 25 (811 Views)

Re: Error Decrypting Data (Acad 2011)

11-10-2010 11:11 AM in reply to: matus.brlit

Hi,

 

Yes, you can trap the COMexception (not a simple Exception), but doing so ( did you?), you still have to set the variable DWGCHECK=2 and try to open the file again in order to get, may be, the drawing opened.

 

Gaston Nunez

 

 

Distinguished Mentor
gasty1001
Posts: 581
Registered: ‎04-11-2010
Message 24 of 25 (809 Views)

Re: Error Decrypting Data (Acad 2011)

11-10-2010 11:22 AM in reply to: matus.brlit

Hi,

 

I think that a better aproach is to set DWGCHECK=2, then try to open the drawing as usual, get the drawing opened and check the DwgFileWasSavedByAutodeskSoftware property in order to take some action.

Gaston Nunez

 

 

New Member
Pilz
Posts: 1
Registered: ‎07-15-2009
Message 25 of 25 (457 Views)

Re: Error Decrypting Data (Acad 2011)

02-17-2012 04:52 AM in reply to: *Norman Yuan

Great! This solved my problem also! Many thanks!!

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!