We've added the Custom Failure Handling (as suggested), but it seems that this code is not even executed: we don't see any logs. The failure seems to occur directly after our log when our plugin starts (see ** Plugin code starts here.
)
...
Running RevitAssemblyResolver....
Initializing RevitCoreEngine...
Selected Revit\RCE install Path: (from app.config) C:\RevitDir
Resolving location of Revit/RevitCoreEngine installation...
Running user application....
Found an addIn for registration: PlugIn01.addin
Initializing RCE....
Initializing RevitCoreEngine (and possibly running stub installer)...
Language not specified, using English as default
application.ActiveAddInId.GetGUID() = 000bd853-36e4-461f-9171-c5aceda4e724
** Plugin code starts here.
Initialize and get RCE: (VersionBuild) 18.0.0.0 (VersionNumber) 2018 (SubVersionNumber) 2018.3
Autodesk.Revit.Exceptions.InternalException: An internal error has occurred.
at Autodesk.Revit.ApplicationServices.Application.OpenDocumentFile(ModelPath modelPath, OpenOptions openOptions)
at DesignAutomationFramework.DesignAutomationData..ctor(Application revitApp, String mainModelPath)
at DesignAutomationFramework.DesignAutomationReadyEventArgs..ctor(Application revitApp, String mainModelPath)
at DesignAutomationFramework.DesignAutomationBridge.SetDesignAutomationReady(Application revitApp, String mainModelPath)
at RevitCoreEngineTest.RceConsoleApplication.Program.UserMain(CommandLineArgs cl)
RESULT: Failure - Result of running user app is failure
Finished running. Process will return: TestError
====== Revit finished running: revitcoreconsole ======
...
What we eventually did to have a successful run, was to recreate a new central file. Maybe the file was corrupt to start with.