Grasshopper

algorithmic modeling for Rhino

Offsetting a list of curves with values from an excel sheet

Hi everyone,

 

Well the title is quite self explanatory i suppose... I have used gHowl to bring in the values from an excel sheet and plugged that into the offset distance of the curve list, however every curve gets offsetted by every value in my spreadsheet.

 

I know a similar problem has been discussed before, but not through a list from ghowl, and  suggestions in that discussion hasn't really worked for me. If anyone would be kind enough to have a look at my definition:

problem%20road%20capacity%20thickness.gh

road%20capacities.xlsx

prob-offsetting.3dm

 

cheers!

Views: 1160

Replies to This Discussion

This works for me as expected. But each of the offset distances in the xls is wildly different. also, you have the Offset component set to Cross Reference. So each line is offset 253 times.... and I just read your post thoroughly. Set the Offset to Longest List.

The issue is in the Offset component.  As Jonah points out, it is set to cross reference.  This will effectively pair every curve with every offset value.

Another issue might be that your curves have all different 'directions.'  I do not mean that they are drawn in different directions, which they are, but that their 'orientation' might differ, meaning what is thought to be its start point, and what is its end point.  This will affect which direction the curve will offset.  Use the 'dir' command in Rhino to check curve direction.  See how flipping a curve will change the offset direction.

Ah, i tried so many things managing the tree, i must have forgotten to switch the cross reference off in the end. Thank you both! Seems to work fine now..

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service