Issue : we couldn’t invoke AutoCAD 2014 from our server by using visual basic programming.
The same program(code) can invoke AutoCAD 2000i without any issues.
We will receive an error message like “ActiveX component can’t create an object”, when we try to open AutoCAD from Visual basic 6.0 program.
We are using the following code for open AutoCAD.
Public Sub ConnectToAutoCad()
On Error Resume Next
Set Acad = GetObject(, AUTOCAD_VERSION)
If Err Then
Err.Clear
Set Acad = CreateObject(AUTOCAD_VERSION)
Sleep (2000)
If Err Then
MsgBox Err.Description
Exit Sub
End If
End If
Acad.Application.Visible = True
End Sub
Operating system : windows server 2003
AutoCAD :AutoCAD 2014 with 32 bit
Visual basic 6.0 is used to invoke the autocad 2014 .
Please help me to resolve this issue ASAP.