("netload" it into AutoCAD)?
"harrisonpm" wrote in message news:email@example.com...
Here is the code that opens the drawing attached
This is another drawing (saved as a dwg from microstation) gives the same problem
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.
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.
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.
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.
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.