• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    *Norman Yuan

    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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    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
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎06-21-2007

    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
    Please use plain text.
    Contributor
    skeletank
    Posts: 19
    Registered: ‎08-25-2010

    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.

    Please use plain text.
    Contributor
    Posts: 15
    Registered: ‎04-30-2009

    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. 

    Please use plain text.
    Contributor
    skeletank
    Posts: 19
    Registered: ‎08-25-2010

    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.

    Please use plain text.
    Contributor
    Posts: 15
    Registered: ‎04-30-2009

    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?

     

    Please use plain text.
    Mentor
    Posts: 214
    Registered: ‎04-11-2010

    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

    Please use plain text.
    Contributor
    Posts: 15
    Registered: ‎04-30-2009

    Re: Error Decrypting Data (Acad 2011)

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

    It works!

     

    Thanks alot Gaston!

    Please use plain text.