Grasshopper

algorithmic modeling for Rhino


Hello,

Is it possible to show some text in the command line of Rhino.
For example a sort of progress report during grasshopper calculations?

Thanks!!

Views: 854

Replies to This Discussion

Hi AU,

yes, in RHinoCommon you can use:
RhinoApp.WriteLine("Hello progress is {0}%", x)

in the old SDK, we needed to add the new line:
C#: RhUtil.RhinoApp().Print(String.Format("Hello progress is {0}%\n", x));
Vb: RhUtil.RhinoApp().Print(String.Format("Hello progress is {0}%" & Environment.NewLine, x))

Also, have a look at RhinoCommon's RhinoApp.CommandPrompt = txt
and old SDK: RhUtil.RhinoApp().SetCommandPrompt(txt)

- Giulio
_________________
giulio@mcneel.com
McNeel Europe, Barcelona
Thanks, I will try this out.

edit;

This one works the best for me I guess....

Vb: RhUtil.RhinoApp().Print(String.Format("Hello progress is {0}%" & Environment.NewLine, x))

The first one doesn't do anything when I type it into grasshopper vb.net

edit2;

What do you mean by old SDK, that's the only one i get working???
RhinoCommon is the new SDK that is available in Grasshopper 0.7.X.
With Grasshopper 0.6.X, we will have to stick to the old SDK version.

- Giulio
_________________
giulio@mcneel.com
McNeel Europe, Barcelona
OK, didn't know that.
I'll probably get the new one when my current project is finished.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service