.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
("netload" it into AutoCAD)?
"harrisonpm" wrote in message news:6369089@discussion.autodesk.com...
Hi Tony
Here is the code that opens the drawing attached
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The code is run from within autocad (acad 2011).
Thanks Peter
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This is another drawing (saved as a dwg from microstation) gives the same problem
Peter
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks for the quick reply, but I need to open the drawing. I wonder why it is different between 2010 and 2011?
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: Error Decrypting Data (Acad 2011)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It works!
Thanks alot Gaston!


