In the Documentation tab of a process there is a checkbox (Designer Enabled), once you enable it it generates an outline of activities/lines that you can export to RTF for documentation.
When I try to uncheck the option the prompt warns me that "If the designer is disabled, all custom changes made will be lost and will not be loaded if designer is re-enabled."
I tried it and the custom event code is there still. What custom changes is it referring to that would be lost?