How to show error message immediately on menu task error

Hi @DavidRutten

A few of our components have tasks in their menu. One of the tasks is “Bake to file”, where the user can write content to a file. I notice that when there is an error during writing, and I set an error message using AddRuntimeMessage(...), the display is not updated. Instead, the user has to click/drag the canvas for the component to switch color and show the error message.

Is it possible to force a redraw on a component or the canvas to immediately show the user that an error has occurred?

Thanks!

Grasshopper.Instances.InvalidateCanvas();

1 Like