AutoCAD Type Library Version conflict

Discussion in 'AutoCAD' started by MickyV, May 26, 2004.

  1. MickyV

    MickyV Guest

    Hi guys,

    I've installed AutoCAD 2005 to evaluated the new features, but now when I call a new session of AutoCAD from a 2004 session, 2005 is launched. I assumed that I would just need to change the reference back to the 2004 Type Library, but it doesn't appear in the list.

    Does anyone know how to get it back to launching 2004?

    Thanks,
    Mick.
     
    MickyV, May 26, 2004
    #1
  2. MickyV

    manoj_vest Guest

    Hi Mick,

    try the following and I think it should work

    Dim obj As AcadApplication
    On Error Resume Next
    Set obj = CreateObject("AutoCAD.Application.16")
    If Err <> 0 Then
    MsgBox Err.Description
    End If
    obj.Visible = True

    I do't have multiple session on my system so that I can test it but it should work. Si the difference in the string of CreateObject method. Here you need to pass the version as wel. Just let me know whether it is working or not.

    Manoj
     
    manoj_vest, May 26, 2004
    #2
  3. Lots of people have come across this problem.

    Autodesk didn't bother to warn them about it, or
    provide instructions on how to fix it.

    Have you tried launching AutoCAD 2004 manually
    before you try to launch it from code?

    Second, are you using "AutoCAD.Application" as
    your class name? If so, try changing it to the version-
    dependent progid ("AutoCAD.Application.16"). The
    version dependent progid for 2005 is the same, with
    the exception that the '16' becomes '16.1'.




    session, 2005 is launched. I assumed that I would just need to change the reference back to the 2004 Type Library, but
    it doesn't appear in the list.
     
    Tony Tanzillo, May 26, 2004
    #3
  4. MickyV

    MickyV Guest

    Hi Manoj,

    Thanks for the try. Unfortunately, it still opens up 2005.
    Any other ideas?

    Mick.
     
    MickyV, May 26, 2004
    #4
  5. MickyV

    MickyV Guest

    Tony,

    I'm now using "AutoCAD.Application.16", but still having the error. And it's getting even more annoying. I'm finding that when I update older macros, they work fine on my computer (in 2004, but with 2005 installed), but don't work on any machines that only have 2004 installed. And these macros don't do anything about opening a new ACAD session.

    This is one VERY annoying problem. I don't think I'm particularly fond of AutoCAD 2005 any more!

    Mick.
     
    MickyV, May 28, 2004
    #5
  6. MickyV

    cascadtx Guest

    Replace the acax16enu.tlb on your machine with the one from one of
    the 2004 machines then update your references. Even a 2005 trial
    install/uninstall will leave this file on your box.
     
    cascadtx, Jun 21, 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.