I have upgraded to AutoCAD 2015 and now I cannot get the app anymore. I'm getting the "Cannot Connect to ActiveX component" error. I assume it has something to do with versioning and I tried using AutoCAD.Application.19 but that doesn't work either. Is this the problem? If so how do I get the version? I looked in the Help/About but couldn't find anything.
Any help would be greatly appreciated!
I'm using VB.net 2010.
Below is my connection code...
Try
oAcadApp = GetObject(, "AutoCAD.Application")
Catch
Try
oAcadApp = CreateObject("AutoCAD.Application")
oAcadApp.Visible = True
Catch ex As Exception
MsgBox(ex.Message & " error while starting AutoCAD.", MsgBoxStyle.Exclamation, "Error Starting AutoCAD!")
Exit Sub
End Try
End Try
Solved! Go to Solution.
Solved by Ed.Jobe. Go to Solution.
Are you creating a standalone exe? Is it 32bit and your acad 2015 is 64bit?
Yes it is a stand alone exe.
AutoCAD is 64 bit.
All running on Windows 7.
I figured it out and was able to get it to change to X64, but now I have errors everywhere. All of these to start with...
Imports Autodesk.Connectivity.WebServices
Imports Autodesk.Connectivity.WebServicesTools
Imports Autodesk.Connectivity.Explorer.ExtensibilityTools
I got it to work!
I had to bump the framework up to 4.5 and then everything came back into focus.
I would never have been able to do this without your help!
Much appreciated!