Grasshopper

generative modeling for Rhino

How to throw a warning or error to turn the component orange or red?

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: GH_RuntimeMessageLevel, error, warning

Views: 57

Reply to This

Replies to This Discussion

AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "Warning message here");

Warning turns component orange, Error turns it red.

Exactly what I needed.  Thanks a lot!

RSS

Translate

Search Grasshopper

Photos

  • Add Photos
  • View All

© 2013   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service