Can't creat object error

Discussion in 'AutoCAD' started by Kresimir P., Feb 8, 2004.

  1. Kresimir P.

    Kresimir P. Guest

    I use standalone VB program that collects data from opened ACAD drawing.
    Program connects to ACAD with CreateObject command. On some machines with
    different ACAD versions installed, program returns an error "Cant create
    object" when earlier version of acad is opened and newer version is
    installed on that computer. It doesn't happen on all computer with multiple
    acad versions.
    Anybody knows the answer why and how to solve it?
    Thanx
     
    Kresimir P., Feb 8, 2004
    #1
  2. The last copy of AutoCAD that runs, is the copy that
    will get started if you use GetObject() and specify
    "AutoCAD.Application" as the class name.

    If your code works with a specific version of AutoCAD,
    then you should use a version-dependent class name, like
    "AutoCAD.Application.15" (AutoCAD 2000-2002).
     
    Tony Tanzillo, Feb 8, 2004
    #2
  3. Kresimir P.

    Kresimir P. Guest

    The problem is the last copy that runs is not the one that will get started
    but the most recent version of AutoCAD.
    Program is not version dependent.
     
    Kresimir P., Feb 9, 2004
    #3
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.