Why doesn't this work now???

Discussion in 'AutoCAD' started by Matt W, Jul 12, 2004.

  1. Matt W

    Matt W Guest

    I've got 2004 and 2005 installed on the same computer.
    It worked on 2004 prior to having 2005 installed. Now, whenever I run my
    program I get the following error message.

    Run-time error 13
    Type mismatch

    Public objLayout As AcadLayout
    Set objLayout = ThisDrawing.ActiveLayout
     
    Matt W, Jul 12, 2004
    #1
  2. Matt W

    Matt W Guest

    Found the source of my frustration...
    It seems the Type Library file has the same name as the one from 2004, so
    the program is now using a 2005 type library.

    Long story short, none of my programs will work in 2004 when both 2004 and
    2005 are installed. *sigh*

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.

    | I've got 2004 and 2005 installed on the same computer.
    | It worked on 2004 prior to having 2005 installed. Now, whenever I run my
    | program I get the following error message.
    |
    | Run-time error 13
    | Type mismatch
    |
    | Public objLayout As AcadLayout
    | Set objLayout = ThisDrawing.ActiveLayout
    |
    | --
    | Matt W
    |
    | The difference between genius and stupidity is that genius has its limits.
    |
    |
     
    Matt W, Jul 13, 2004
    #2
  3. Matt W

    TomD Guest

    Thanks for posting what you found, Matt.
     
    TomD, Jul 13, 2004
    #3
  4. Matt W

    Kevin Terry Guest

    As an experiment, try running only one version between reboots and see if
    that remedies your problem. I've had both 2004 and 2005 installed for
    months, and as long as i don't run 2005 before 2004 after a reboot i don't
    have a problem, and visa versa.

    Kevin
     
    Kevin Terry, Jul 13, 2004
    #4
  5. The problem should go away if you open your dvb files (which were last saved
    in A2004) in A2005 and resave in it.
    Can you try out and let me know if it eliminates the errors?

    Thanks
    Ravi Pothineni
    Autodesk, Inc.
     
    Ravi Pothineni, Jul 13, 2004
    #5
  6. Matt W

    Matt W Guest

    I don't want to resave them right now.
    We're in that "transition period" between releases. Not everyone in the
    office has 2005 installed yet.

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | The problem should go away if you open your dvb files (which were last
    saved
    | in A2004) in A2005 and resave in it.
    | Can you try out and let me know if it eliminates the errors?
    |
    | Thanks
    | Ravi Pothineni
    | Autodesk, Inc.
    |
    | | > Found the source of my frustration...
    | > It seems the Type Library file has the same name as the one from 2004,
    so
    | > the program is now using a 2005 type library.
    | >
    | > Long story short, none of my programs will work in 2004 when both 2004
    and
    | > 2005 are installed. *sigh*
    | >
    | > --
    | > Matt W
    | >
    | > The difference between genius and stupidity is that genius has its
    limits.
    | >
    | > | > | I've got 2004 and 2005 installed on the same computer.
    | > | It worked on 2004 prior to having 2005 installed. Now, whenever I run
    | my
    | > | program I get the following error message.
    | > |
    | > | Run-time error 13
    | > | Type mismatch
    | > |
    | > | Public objLayout As AcadLayout
    | > | Set objLayout = ThisDrawing.ActiveLayout
    | > |
    | > | --
    | > | Matt W
    | > |
    | > | The difference between genius and stupidity is that genius has its
    | limits.
    | > |
    | > |
    | >
    | >
    |
    |
     
    Matt W, Jul 14, 2004
    #6
  7. Hi Matt,
    A2004 will be able to read dvb files saved in A2005 without any problem
    (even if A2005 is not installed on the machine). So you can go ahead and
    resave your dvb files.

    Ravi
     
    Ravi Pothineni, Jul 14, 2004
    #7
  8. Matt W

    Matt W Guest

    Okay, so then why do I get this error message at the line below on a
    computer that has both ABS4 and ABS5 but NOT on a computer with just ABS4??
    There are no references to ANY Building Systems or Arch Desktop files in the
    program.


    Run-time error 13
    Type mismatch

    Public objLayout As AcadLayout
    Set objLayout = ThisDrawing.ActiveLayout

    I'm a little hesitant about saving my files when I keep getting error
    messages.

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | Hi Matt,
    | A2004 will be able to read dvb files saved in A2005 without any problem
    | (even if A2005 is not installed on the machine). So you can go ahead and
    | resave your dvb files.
    |
    | Ravi
    |
    | | > I don't want to resave them right now.
    | > We're in that "transition period" between releases. Not everyone in the
    | > office has 2005 installed yet.
    | >
    | > --
    | > Matt W
    | >
    | > The difference between genius and stupidity is that genius has its
    limits.
    | > | > | The problem should go away if you open your dvb files (which were last
    | > saved
    | > | in A2004) in A2005 and resave in it.
    | > | Can you try out and let me know if it eliminates the errors?
    | > |
    | > | Thanks
    | > | Ravi Pothineni
    | > | Autodesk, Inc.
    | > |
    | > | | > | > Found the source of my frustration...
    | > | > It seems the Type Library file has the same name as the one from
    2004,
    | > so
    | > | > the program is now using a 2005 type library.
    | > | >
    | > | > Long story short, none of my programs will work in 2004 when both
    2004
    | > and
    | > | > 2005 are installed. *sigh*
    | > | >
    | > | > --
    | > | > Matt W
    | > | >
    | > | > The difference between genius and stupidity is that genius has its
    | > limits.
    | > | >
    | > | > | > | > | I've got 2004 and 2005 installed on the same computer.
    | > | > | It worked on 2004 prior to having 2005 installed. Now, whenever I
    | run
    | > | my
    | > | > | program I get the following error message.
    | > | > |
    | > | > | Run-time error 13
    | > | > | Type mismatch
    | > | > |
    | > | > | Public objLayout As AcadLayout
    | > | > | Set objLayout = ThisDrawing.ActiveLayout
    | > | > |
    | > | > | --
    | > | > | Matt W
    | > | > |
    | > | > | The difference between genius and stupidity is that genius has its
    | > | limits.
    | > | > |
    | > | > |
    | > | >
    | > | >
    | > |
    | > |
    | >
    | >
    |
    |
     
    Matt W, Jul 14, 2004
    #8
  9. Each dvb file caches the typelib info in some peculiar way. After installing
    A2005 on a machine with A2004, the typelib gets updated. So now when you try
    to load the dvb file in A2004, the cached typelib info is out of sync and
    this causes the error.
    You don't get the error in A2005 (or if the project is last saved in A2005
    and you try to open it on a machine with only A2004), because in acvba.arx
    we detect that the dvb file has been saved in another version of AutoCAD and
    hence we reload the vba project from text.
    On a machine with only A2004, and project last saved in A2004, the cached
    typelib info is always in sync. That's why you don't get the error.
     
    Ravi Pothineni, Jul 14, 2004
    #9
  10. Matt W

    Matt W Guest

    Thanks for the technical explanation, Ravi!
    I've tried it on a few proggy's as a test, and what do you know?? It
    actually works!
    I just have to do the rest now.

    Thanks again!

    --
    Matt W

    The difference between genius and stupidity is that genius has its limits.
    | Each dvb file caches the typelib info in some peculiar way. After
    installing
    | A2005 on a machine with A2004, the typelib gets updated. So now when you
    try
    | to load the dvb file in A2004, the cached typelib info is out of sync and
    | this causes the error.
    | You don't get the error in A2005 (or if the project is last saved in A2005
    | and you try to open it on a machine with only A2004), because in acvba.arx
    | we detect that the dvb file has been saved in another version of AutoCAD
    and
    | hence we reload the vba project from text.
    | On a machine with only A2004, and project last saved in A2004, the cached
    | typelib info is always in sync. That's why you don't get the error.
    |
    | | > Okay, so then why do I get this error message at the line below on a
    | > computer that has both ABS4 and ABS5 but NOT on a computer with just
    | ABS4??
    | > There are no references to ANY Building Systems or Arch Desktop files in
    | the
    | > program.
    | >
    | >
    | > Run-time error 13
    | > Type mismatch
    | >
    | > Public objLayout As AcadLayout
    | > Set objLayout = ThisDrawing.ActiveLayout
    | >
    | > I'm a little hesitant about saving my files when I keep getting error
    | > messages.
    | >
    | > --
    | > Matt W
    | >
    | > The difference between genius and stupidity is that genius has its
    limits.
    | > | > | Hi Matt,
    | > | A2004 will be able to read dvb files saved in A2005 without any
    problem
    | > | (even if A2005 is not installed on the machine). So you can go ahead
    and
    | > | resave your dvb files.
    | > |
    | > | Ravi
    | > |
    | > | | > | > I don't want to resave them right now.
    | > | > We're in that "transition period" between releases. Not everyone in
    | the
    | > | > office has 2005 installed yet.
    | > | >
    | > | > --
    | > | > Matt W
    | > | >
    | > | > The difference between genius and stupidity is that genius has its
    | > limits.
    | > | > | > | > | The problem should go away if you open your dvb files (which were
    | last
    | > | > saved
    | > | > | in A2004) in A2005 and resave in it.
    | > | > | Can you try out and let me know if it eliminates the errors?
    | > | > |
    | > | > | Thanks
    | > | > | Ravi Pothineni
    | > | > | Autodesk, Inc.
    | > | > |
    | > | > | | > | > | > Found the source of my frustration...
    | > | > | > It seems the Type Library file has the same name as the one from
    | > 2004,
    | > | > so
    | > | > | > the program is now using a 2005 type library.
    | > | > | >
    | > | > | > Long story short, none of my programs will work in 2004 when
    both
    | > 2004
    | > | > and
    | > | > | > 2005 are installed. *sigh*
    | > | > | >
    | > | > | > --
    | > | > | > Matt W
    | > | > | >
    | > | > | > The difference between genius and stupidity is that genius has
    its
    | > | > limits.
    | > | > | >
    | > | > | > | > | > | > | I've got 2004 and 2005 installed on the same computer.
    | > | > | > | It worked on 2004 prior to having 2005 installed. Now,
    whenever
    | I
    | > | run
    | > | > | my
    | > | > | > | program I get the following error message.
    | > | > | > |
    | > | > | > | Run-time error 13
    | > | > | > | Type mismatch
    | > | > | > |
    | > | > | > | Public objLayout As AcadLayout
    | > | > | > | Set objLayout = ThisDrawing.ActiveLayout
    | > | > | > |
    | > | > | > | --
    | > | > | > | Matt W
    | > | > | > |
    | > | > | > | The difference between genius and stupidity is that genius has
    | its
    | > | > | limits.
    | > | > | > |
    | > | > | > |
    | > | > | >
    | > | > | >
    | > | > |
    | > | > |
    | > | >
    | > | >
    | > |
    | > |
    | >
    | >
    |
    |
     
    Matt W, Jul 15, 2004
    #10
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.