Hello everyone, I was recently working on an addin for Revit that tries to export a preview image of a certain view when ever the user makes any changed to the model. everything went according to plan except for a tiny little bug that despite it's insignificance, renders the whole addin completely useless. so the addin is supposed to capture a preview every time that the DocumentChanged event is triggered, but somehow this process is getting in the way of Revit and preventing it from changing some of the instance parameters (e.g. whenever I tried to change the top constraint of a wall from "level3"to "unconstrained", the parameter reverts back to "level3" as soon as I click it). it is extremely difficult for me to figure out a workaround and this is why I'm asking for your help. What I do know is this: the issue is not caused by the act of subscribing to the event. rather it is the byproduct of both the event subscription as well as the doc.ExportImage method. if I comment out this line the problem disappears immediately, but then obviously no previews will get exported. any help is greatly appreciated and thanks in advance...
here is my method: