algorithmic modeling for Rhino

Silly question, but is there a way in the C# grasshopper editor to print values like there is in the Python component? I've tried Console.WriteLine() but I'm not seeing anything printing. Thanks!

Views: 2711

Replies to This Discussion

There is MessageBox.Show("your text");
And you will have a message with OK button

- Out: Print("your text");

- Command line: Rhino.RhinoApp.WriteLine("your text");

- Window: MessageBox.Show("your text");

Awesome, all of those are great. Thanks!

For completeness, you can also use the regular grasshopper way of sending messages:

Component.AddRuntimeMessage(GH_RuntimeMessageLevel.Error, "My error message");

Component.AddRuntimeMessage(GH_RuntimeMessageLevel.Warning, "My warning message");

Component.AddRuntimeMessage(GH_RuntimeMessageLevel.Remark, "A remark (shown as white)");





© 2023   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service