GetObject(, "CATIA.Application") not working anymore for some 3DEXPERIENCE R2022x

Pedro Pereira

GetObject(, "CATIA.Application") not working anymore for some 3DEXPERIENCE R2022x

Hello community,

I been creating macros in Excel (VBA) and in Microsoft Visual Studio (VB.net) using some libraries from B26 folder, B215 and B424. 

I used to call catia application with CATIA=GetObject(, "CATIA.Application") but it's not working anymore for some 3DEXPERIENCE R2022x (it works on CATIA V5 R26 and it worked on 3DExperience R2021X)

I'm not sure why some users cannot run anymore the macros, i have confirmed they have CATIA (3DExp open) but its failing in CATIA=GetObject(, "CATIA.Application") and the folders mentioned above. (it still works fine for me).

Any thoughts?

Kind regards,

Little Cthulhu

RE: GetObject(, "CATIA.Application") not working anymore for some 3DEXPERIENCE R2022x
(in response to Pedro Pereira)

Check HKCR hive of the Windows registry for CATIA.Application key. Make sure it points to 2022x.

V5 registers itself by running "cnext.exe /regserver"

I suppose this still may be the same for V6

Pedro Pereira

RE: GetObject(, "CATIA.Application") not working anymore for some 3DEXPERIENCE R2022x
(in response to Little Cthulhu)

Thanks, Little Cthulhu

In regedit (the image attached) i don't see anything specific pointing to 2022x.

Attachments

  • regedit.jpg (48.8k)

Pedro Pereira

RE: GetObject(, "CATIA.Application") not working anymore for some 3DEXPERIENCE R2022x
(in response to Pedro Pereira)

ok, by searching that app id, i think it's likely to be this attached.

Attachments

  • regedit2.jpg (48.6k)