Grasshopper

algorithmic modeling for Rhino

Hello,

Is there a certain component to change the index number with any other desired number ?.. for example if I have a list of three numbers with index number 0,1,2 but I want it to be 100,101,102.

Views: 1944

Replies are closed for this discussion.

Replies to This Discussion

Indices always start at zero. The only way to set the index of a specific value is to insert a whole bunch of null values before it that take up the other indices.

What exact problem are you trying to solve though, because this sounds like the second half of a solution you've already come up with.

Hello David, I've imported a mesh from SAP2000 and was trying to make points numbers similar to their numbers in SAP2000..the only solution I came up with was exactly what you've suggested in your reply but it took me a couple of days to figure it out (wish if I asked you earlier about it  and saved all that time). the annoying thing is that nodes numbers are not consecutive since I'm considering a part of the whole SAP model which requires adding lots of null values in between.

Well if you have to put points in the correct index so it matches up with some other data structure not under your control you may indeed have to resort to inserting them into a huge list filled with nulls.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service