AutoCAD 2005?

Discussion in 'AutoCAD' started by ChrisW, Jun 14, 2004.

  1. ChrisW

    ChrisW Guest

    I use this simple code to launch autocad with a vb6 program. We are going
    to be upgrading to AutoCAD 2005 next week and i was wondering if i needed to
    change anything?

    On Error Resume Next
    Set acdApp = GetObject(, "autocad.application")
    If Err.Number <> 0 Then
    Set acdApp = CreateObject("autocad.application")
    Err.Clear
    End If
     
    ChrisW, Jun 14, 2004
    #1
  2. I think your able to start AutoCAD in this manner because you have had only
    one version installed. You may have to try something like this after
    installing 2005.

    On Error Resume Next
    Set acdApp = GetObject(, "autocad.application.16")
    If Err.Number <> 0 Then
    Set acdApp = CreateObject("autocad.application.16")
    Err.Clear
    End If

    Best regards,

    Dale
     
    Dale Levesque, Jun 14, 2004
    #2
  3. ChrisW

    Anthony Guest

    Hi,

    you code should work fine, however you should set the autocad.application to
    be version specific (in case a user hase two versions on one machine)
    ie GetObject(, "autocad.application.16") etc


    Anthony
     
    Anthony, Jun 15, 2004
    #3
  4. ChrisW

    Joe Sutphin Guest

    As long as 2005 is the only version you have installed, you should be fine.
     
    Joe Sutphin, Jun 15, 2004
    #4
  5. ChrisW

    Danny P. Guest

    Chris,

    You need to change the reference to "AutoCAD.Application.16.1"

    Hope that helps,
    Danny Polkinhorn
    WATG
    Honolulu
     
    Danny P., Jun 15, 2004
    #5
  6. As Joe said

    Only when you have multiple versions installed do you NEED to use
    AutoCAD.Application.16.1 or if you are doing something specific to a single
    release and want to make sure you have it specifically. Same is true for
    other applications like Excel, too.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Jun 15, 2004
    #6
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.