If you get errors with the CATIA 5 DCI, set the DebugMode registry entry to True. This value creates a log file with diagnostic information about the DCI operations.