Open alexberd opened 4 years ago
Hi @alexberd
Does this happen with any file and script you use or after certain types of Dynamo operations?
The difficulty of handling this scenario is that I believe the process that displays the dialog "Autodesk Revit has stopped working" is not easily identifiable as associated with the crashing Revit process (correct me if I'm wrong) so it would be difficult to detect that this has occurred for the particular Revit process and to send a button click to the process showing the dialog. (in particular, if two or more Revit processes are running at the time, how do we detect which one is crashing? etc.)
Hi Dan - Sorry for my very late message.
Would it be possible to try to identify any window which include the text "Autodesk Revit has stopped working" ?
Then we can instruct application to send the ALT+C keyboard command to close Revit.
Regards, Alexandros
@alexberd Potentially yes, however the issue here is that the process that creates the "stopped working" dialog is not associated with the Revit process that crashed. I wonder if there is a (windows) setting to disable those types of dialogs from displaying when a process crashes?
Revit Batch Processor opens the file, runs the dynamo script and then closes Revit. During closing, Revit halts giving the error "Autodesk Revit has stopped working" and the following dialog box appears asking me to close or to debug it.
Unfortunately we cannot debug Revit as we don't have the PDB files. Refer also to few links below, this seems to be a common Revit issue. https://forums.autodesk.com/t5/revit-api-forum/revit-crash-in-utility-dll-when-using-external-event/td-p/7111076 https://forums.autodesk.com/t5/revit-architecture-forum/revit-crashing-when-closing-model-file-ntdll-dll-errors/td-p/6573162
Would it be possible to modify Revit Batch processor to send an "ALT+C" command when this message appears? This will allow to automatically click the "close program" button and to continue the process without manual input from the user.
This will be truly beneficial having let us use Revit Batch Processor uninterrupted in multiple files.
Many thanks. Alexandros