algorithmic modeling for Rhino
I have been following the tutorial from Columbia's GSAPP, but the difference here is I have a separate spreadsheet with height data, along with corresponding building id tag. Some building heights are missing, so merging a check with the building id is needed to ensure the correct height is used.
Changing the order of the building.xls data will result in the data not corresponding with the shapefile, I think, but I'm not sure.
So my question is, how can I merge data from both buildings.xls and heights.xls within grasshopper to have the buildings extruded to the correct height?
Tags:
hello Stirling
i am not familiar with meerkat. i have been using @it
which when you load a shape file you have access to attributes like height etc in a list which makes things easier (not to mix heights and shapes)
it might be worth a try
cheers
alex
Well (if I got it correctly) that's very easy with code: I don't have the plug-in required but that's not important at all (I've made some quick "simulation" of the whole "combine this with that" situation).
I'll post tomorrow the def captured (that checks both trees in case where an ID exists here but not there (puts null))
Here we are: working on my "simulation" of your data, so to speak (I did some "minor" changes and separated things in order to use the 2nd C# against your data trees).
Note: Not sure that I've got the issue 100% correctly ... but if not notify (for instance: are you sure that the build_ID tree is the "master"? etc etc). Anyway I've added a "make unequal" trees option (and therefor the "Not found" thingy appears - toggle the bool (red group) and see what happens).
PS: unequal means that the build_H tree is the "slave" (may contain fewer ID's, that is)
best, Peter
Hi Peter,
Thanks for taking a look at this!
As I understand your file, the C# Update module should be able to plug-in straight data coming in from the xls files, or perhaps I've missed something? When attempting this, an error message occurs; see below for the error message produced highlighting line 85 of C# Update.
The error below is also replicated when using your original file and plugging in the corresponding purple panels into the C# Update as opposed to your C# Buildings component.
Alex,
Thanks for the tip, I hadn't seen this plug-in. I'll take a look!
Sorry for the confusion, I think I wasn't clear in my first message. I'll take a look and see what I can do...
Thanks again!
OK, here's what can we do (that @$@ TT it doesn't work for some reason).
1. Get your 2 datatrees in 2 data components
2. Internalize data (and cross fingers because ... but that's another story, he he) and send them over there in a definition that has ONLY 2 data components: any imaginable issue could be resolved in nanoseconds (with an extended 123.45 years guarantee).
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by