sdubbs Posted October 14, 2010 Share Posted October 14, 2010 I'm trying to run some code from AutoCAD 2006 in AutoCAD 2011 but it's failing on the thisdrawing.open Sub main() ThisDrawing.Open "C:\CGP1-L-099-PI1-93327-09.DWG" End Sub Run-time error '-2145386445 (80200033)': Filer error Has anyone ever come across this? I've been putting off rewriting this in .NET.... Thanks Quote Link to comment Share on other sites More sharing options...
Jeff H Posted October 14, 2010 Share Posted October 14, 2010 See if this helps Go here at http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html This is the AutoCAD .NET Developers guide but at the bottom of the page expand the VBA/ActiveX Code reference Quote Link to comment Share on other sites More sharing options...
Jack_O'neill Posted October 15, 2010 Share Posted October 15, 2010 I've never looked at 2011, but for 2010 there was a vba something or other that you had to download to get it to work. Same for 2011 maybe? Quote Link to comment Share on other sites More sharing options...
sdubbs Posted October 15, 2010 Author Share Posted October 15, 2010 I've already downloaded and installed the vba enabler for AutoCAD 2011. Thanks Quote Link to comment Share on other sites More sharing options...
Jeff H Posted October 15, 2010 Share Posted October 15, 2010 (edited) It is not posting right so go to http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html and at the bottom expand the VBA/ACTIVEx node Edited October 15, 2010 by Jeff H cv Quote Link to comment Share on other sites More sharing options...
Jeff H Posted October 15, 2010 Share Posted October 15, 2010 Try Dim dwgName As String dwgName = "c:\Whatever.dwg" ThisDrawing.Application.Documents.Open dwgName Quote Link to comment Share on other sites More sharing options...
Jack_O'neill Posted October 15, 2010 Share Posted October 15, 2010 I've already downloaded and installed the vba enabler for AutoCAD 2011. Thanks Figured you probably had, but hey, sometimes the obvious is the first thing overlooked. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.