M76 Posted July 18, 2011 Share Posted July 18, 2011 Hi I don't know how can this issue be solves, I recently upgraded my system from windows xp 32 bit, to windows 7 64bit, and now when I try to use objectarx in autocad the application crashes. With this error: This is the code that causes the error Set amap = ThisDrawing.Application.GetInterfaceObject("AutoCADMap.Application") Set odtb = amap.Projects(ThisDrawing).ODTables.Item("table_name") Set odrcs = odtb.GetODRecords() The first line executes, and then the error occurs when I try to get the object data table in the second. Under the 32bit xp, there were no such problems. And the same happens with autocad map 3d 2007 and autocad map 3d 2012 64bit version. And ideas how to get around this? I don't wish to go back to 32bit, because I upgraded to have more memory avaialable for the applications in the first place. thanks Quote Link to comment Share on other sites More sharing options...
M76 Posted July 28, 2011 Author Share Posted July 28, 2011 Solved I had to use version dependent progid, when calling the interface object. Quote Link to comment Share on other sites More sharing options...
M76 Posted August 5, 2011 Author Share Posted August 5, 2011 I had to reinstall autocad 2007 for other reasons, and now I'm back to square one. It doesn't recognize the progid now. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 5, 2011 Share Posted August 5, 2011 When you upgraded to Windows 7 64-Bit, did you download/install the correct Map SDK? Quote Link to comment Share on other sites More sharing options...
M76 Posted August 5, 2011 Author Share Posted August 5, 2011 By upgrade I mean I did a completely clean install on an empty hard drive, so there are no lefovers from the old system. I didn't download an sdk only the vba enabler. Quote Link to comment Share on other sites More sharing options...
BlackBox Posted August 5, 2011 Share Posted August 5, 2011 Please forgive my confusion, if I'm mistaken on anything mentioned below, feel free to correct me. Perhaps this is demonstrative of my lack of experience with VBA, .NET, ARX (as I'm a Visual LISP guy), but when you specify in the OP that you're 'trying to use ObjectARX'... that requires (as I understand it) that the applicable ARX Software Development Kit (SDK) for your version of AutoCAD, Map, Civil 3D, etc. be installed. ARX development is done via Visual Studio (Full, or Express) in C++. The VBA Enabler is a supplementary download for newer versions of AutoCAD products that no longer include the VBA Integrated Development Environment (IDE)... in order to access VBAIDE, the VBA Enabler is required (again, as I understand it). I'll see if I have time to test your code later today. Quote Link to comment Share on other sites More sharing options...
VivekGIS Posted February 23, 2013 Share Posted February 23, 2013 Solved I had to use version dependent progid, when calling the interface object. Iam facing the same problem.Kindly help me solve it Quote Link to comment Share on other sites More sharing options...
M76 Posted February 24, 2013 Author Share Posted February 24, 2013 Sorry, that was almost two years ago. I don't even remember if It was ever solved, or I simply abandoned it. 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.