Description:
I am trying to run the API program and am getting Run-time error '-2147418113 (8000ffff)': Automation error Catastrophic failure. What is causing it and how to fix it?

Solution:
To make the API work, you must have an installed copy of erwin DM on the same PC where the application with the API is running from. Press debug to see which line in the code is executing. Your erwin file may be marked read-only or it may be open in erwin DM. Please remove the read-only property and close the file if open in erwin DM. Then try again. It could also be because the needed DLLs, EAL.DLL and ERXML.DLL are not registered properly. Make sure that these are registered and are also compatible in bit size, meaning if erwin is 32-bit then the application, e.g. MS Excel, is also 32-bit; same for 64-bit. This should take care of most of the common errors of such nature.