Acad Mechanical 2005 GetInterfaceObject Problem

Acad Mechanical 2005 GetInterfaceObject Problem

dhaverstick
Advocate Advocate
230 Views
2 Replies
Message 1 of 3

Acad Mechanical 2005 GetInterfaceObject Problem

dhaverstick
Advocate
Advocate
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
0 Likes
231 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
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...
0 Likes
Message 3 of 3

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

--Darren
0 Likes