Grasshopper

algorithmic modeling for Rhino

Hello,

I'm trying to cull a list of items by the length of lists. Specifically, I have split a series of surfaces to be panelized in Revit, and I need to separate out the panels by the number of edges.

The way the data tree is set up,  { A ; B} (i), A = face of the brep, B = face to be sent to Revit, i = # of edges on the face.

My plan was to use List Length to set up a bitmap to feed into the Cull List component where, when the (list length) = 4 would make 1, (list length) = 3 or =5 makes 0. But List Length is always putting out 1 for these lists.

Any suggestions are appreciated.

Views: 1979

Replies to This Discussion

UPDATE:

So List Length is working correctly. What I still can't get is an if/then statement where

if (list length) = 4, then write 1

use [Equality].

[List Length] --> (A)[Equality]

4 --> (B)[Equality]

[Equality](R) is 1 if = 4 and 0 <> 4

Haha, Got it right before your reply. Thank you though. I'm now having a new problem with the culled list though. Some of the branches are coming out with no data at all

Replace Null Item doesn't seem to be working. Do I need to cull my culled list? That makes it seem like something is wrong upstream.

You are culling everything from that Branch therefore it is empty. What is it you want to do?

You can use [Clean] to get rid of all empty branches...

Ok nevermind. Prune Tree worked.

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