Acad Mechanical 2005 GetInterfaceObject Problem

Discussion in 'AutoCAD' started by dhaverstick, Sep 24, 2004.

  1. dhaverstick

    dhaverstick Guest

    Everytime I try to access the McadApplication object or the GeApplication object in VB/VBA, I get a "Problem in loading application" error. I've reinstalled Acad Mechanical 2005 and I have ran mcadautoreg.exe. Nothing seems to fix this problem. Here is a snippet of code I'm using and, yes, I have referenced all the correct dll's. Has anybody got a sure way to fix this error?

    Private Sub test()
    Dim McadApp As McadApplication
    Dim GEApp As GeApplication

    Set McadApp = ThisDrawing.Application.GetInterfaceObject("Mcad.Application")
    Set GEApp = ThisDrawing.Application.GetInterfaceObject("Ge.Application")
    End Sub
     
    dhaverstick, Sep 24, 2004
    #1
  2. It should be either:

    "Mcad.Application.16"
    "Ge.Application.16"
    or
    "Mcad.Application.2"
    "Ge.Application.2"

    Can't remember which at the moment.

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 25, 2004
    #2
  3. dhaverstick

    dhaverstick Guest

    I tried both "Mcad.Application.2" and "Mcad.Application.16" and neither of them fixed the problem.

    --Darren
     
    dhaverstick, Sep 27, 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.