Reg. Cannot Create ActiveX Component

Reg. Cannot Create ActiveX Component

Anonymous
Not applicable
488 Views
0 Replies
Message 1 of 1

Reg. Cannot Create ActiveX Component

Anonymous
Not applicable

While the AutoCAD application is opened by manually and after that if I run the mentioned code then it is fine.

 

But while crating object (Opening AutoCAD using Code) I am getting the error message thet " Cannot create ActiveX component "

 

Dim objAcadApp As AcadApplication

        Try
            objAcadApp = GetObject(, "AutoCAD.Application.19")

            If objAcadApp Is Nothing Then
                objAcadApp = CreateObject("AutoCAD.Application.19")
            End If

 

      Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try

0 Likes
489 Views
0 Replies
Replies (0)