Grasshopper

algorithmic modeling for Rhino

Hi everyone,

I couldn´t manage to add a new line to a set of strings I am formatting with the format method inside function.
tried with \n and Environment.newLine and nothing

in general, doesn´t the function component accept any vb method?

any suggestions?

thanx

Views: 574

Replies to This Discussion

"in general, doesn´t the function component accept any vb method?"

I don't think so. I think the syntax & language of the expression component, although based on VB, is completely written from scratch by David Rutten. So David has to manually add it before it understands what it is. I'm not sure if he added something for line breaking. You can always do it in a vb.net component.
Well, if you're in a pinch, you can actually output a new line character from a vb component and then use that within the function component. Not pretty, but it works

Good points, I'll add the constants as they are defined in VBScript (i.e. vbCrLf, vbTab etc.)

--
David Rutten
david@mcneel.com
Poprad, Slovakia
Thank you all for your responses.

I think it will be quite useful to have the constants, David.

By now, I think I´ll use the script component short cut.

Cheers!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service