Display Results

unhandled

(Benjamin Grouteau) #1

Hy everybody,

I’m doing for my internship a solarstudy with Honeybee and Ladybug. The aim is, from a volume, to estimate the power provided by PV. For each facade and Roof I obtained several values in a list which is partitioned. My Goal is to Show the result on the model. I tried but all my results are overlaped. Do you have any suggestion to find a solution ?

Best regards



#2

hm. It is about showing text?
In ur screenshot u place all of them on the same location. U ever tried to calculate the locations based on the list-length and the size (probably height) of the text?

As a hint :wink:

  • flatten
  • list-length
  • series
  • multiplication

(Benjamin Grouteau) #3

Hy Mark,

I tried to separate the value from the list in order to assign for each result a Location. What do you mean by list length and size of the text ? Because the list is already partitioned, perhaps I missed something, i just begin on grasshopper.

Thanks


(Benjamin Grouteau) #4

Ok, I understand !! I didn’t know the tool flatten … It saved me thank you very much !
So I did like this and it’s working :slight_smile:


#5

hey,

U can use the flatten-operation on each parameter (input/output-plug) directly. Just right-click on the text beside the plug and have a look what is coming up. Depending on the type, different options come up.
Graft / Simplify / Flatten are always part of the choice because the are used on the passed DataTree.
At the first look, “Flatten” is the inverse of “Graft”, but its not. The inverse of “Graft” is “ShiftPath”.

looks like u are a beginner? U should have a look up for DataTree.

The use of flatten is kind of useful, but should be used with care. I guess it is ok for beginners to use.
But, If u want to go further u should avoid it soon, and replace it with the “shiftPath” component, which is used to lower the branching of a tree in a good manner.

Why?
Using a single flatten in a definition may destroys the ability to use a “single-element”-solution in an other scenario where “multiple elements” are solved with the same method at the same time, which is extremly useful for more complicated tasks.

Greets


(Benjamin Grouteau) #6

Thank you for all the information !


#7

U are very welcome :wink:


(Benjamin Grouteau) #8

It works very well, this part of the simulation is finished thank to you :slight_smile: