Grasshopper

algorithmic modeling for Rhino

I'm curious if there is a way to attach attributes to geometry in Rhino, and then see them in Grasshopper. Like a list of key-value pairs. This might be unclear, so here is an example:

I have many curves in Rhino that represent property lines on a city map. I want to add data attributes to the curves, such as zoning type, appraised tax value, and other property data. I want to use the data for use in geometric analysis on the properties, such as how much residential zoning is within a certain proximity of commercial zoned properties.

I was figuring I'd just feed the data into primitive components and run the data in parallel with the geometries, but this seems like an ugly solution that would result in a lot of components and work.

I also considered using the GUIDs to refer to an external table such as a CSV file, but was unsure about the parsing code for the Read File component. This is probably the way to go. But it seems like the Read File component only has one output, so I'd probably just need multiple ReadFiles for each data field.

Any ideas? Or location of good Read File parsing code?

Views: 2039

Replies to This Discussion

Hi Chris
I just work on similiary project. I think the best solution is use VBscript. ArrayList is a perfect class exactly for your problem. You can collect a information about geometry at one list, in the second have some value and etc. Try it

Joach
hey joach,

i'm also trying to do so.
do you have any script which shows how you work with and handle these arraylists. you don't have to prepare any script. it should be fine just to paste any code which shows an example!
i did a lot of rhino-scripting but in vb.net everything is a little bit different to handle which makes it hard sometimes.

greets
patrick

You might find this useful

http://www.grasshopper3d.com/group/eyas

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