algorithmic modeling for Rhino
I have a few conditions I want to have warnings or errors for in my code. I see the GH_RuntimeMessageLevel enum, but how is it that one can utilize it to display the appropriate warning or error color for the component? I will probably bump into it sooner or later, but I wanted to ask here as a bit of searching didn't turn up anything obvious.
Tags:
AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Warning message here");
Warning turns component orange, Error turns it red.
Exactly what I needed. Thanks a lot!
This is inspired for me, but is it possible to stop the solver at the mean time?
GrasshopperDocument.RequestAbortSolution();
Then exit the script.
I looked for this method again today, but I can not find it under GH_Document. I'm using 0.9.0076
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by