Why does it come to an error when load the application using VLAX.cls

Why does it come to an error when load the application using VLAX.cls

Anonymous
Not applicable
283 Views
1 Reply
Message 1 of 2

Why does it come to an error when load the application using VLAX.cls

Anonymous
Not applicable
When I run my sub in AutoCAD 2004, the following codes will come to an error: Private Sub Class_Initialize() If Left(ThisDrawing.Application.Version, 2) = "15" Then Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.1") ElseIf Left(ThisDrawing.Application.Version, 2) = "16" Then Set VL = ThisDrawing.Application.GetInterfaceObject("VL.Application.16") ' error occurs End If Set VLF = VL.ActiveDocument.Functions End Sub Thanks!
0 Likes
284 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Enter this "(vl-load-com)" at the command line and then see if you still get the error.
Regards - Nathan
0 Likes