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

Discussion in 'AutoCAD' started by Afanto, Sep 30, 2004.

  1. Afanto

    Afanto Guest

    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!
     
    Afanto, Sep 30, 2004
    #1
  2. Enter this "(vl-load-com)" at the command line and then see if you still get the error.
    Regards - Nathan
     
    Nathan Taylor, Oct 1, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.