Grasshopper

algorithmic modeling for Rhino

Hi,

my todays question is about how to create a range of numbers in c#.

Should be a 5 line thing I thought.

But I dont get it, how does it work?

Thanks for everybody looking on it!

Views: 563

Attachments:

Replies to This Discussion

Hi Chapulin

GetRange() gives a subset of the items in the list.

https://stackoverflow.com/questions/25240871/how-to-work-with-list-...

You are probably attempting this:

https://stackoverflow.com/questions/6483032/generating-numbers-list...

Note: Grasshopper does not necessarily follow the same naming conventions as C# and the .Net Framework.

I hope this helps,

Giulio
--
Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com

Hi Giulio,

thanks for your attention!

The link you sent is giving me an array(from start-end).

I am trying to archieve the same the range component does.

Not sure if the first link helps me(dont understand it 100%).

thanks!

works perfect!

Thanks Tom!

I thought at the beginning of something like this, since its just simple math, just didnt knew how to write it.

Thanks again!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service