fairly simple issue but i’m stuck here
Notice your item at index  for the surface area and index  don’t match. This is because you’re working with a float which is less stable.
Round your values before you get the maximum value so that you’re comparing integers instead to prevent this.
Or sort them (ascencing order) and take the last item of each nested list.
thanks all, seems both rounding and sorting doesn’t work, but my logic (of list handling) is correct, right?
I think that @alvpickmans said is something like this:
right, it works, thanks.
but how to get the index from original list? in fact, i just want to get the face list w/ maximum area, not area itself
Try to change the “element” input of indexOf node to @L1
not working, warning: argument is invalid
@tiagocorradi - what Dynamo version are you using?
Auto lacing isn’t in the supported 1.3.2 though… unless I missed something.
no auto lacing, but my Dynamo is most updated, isn’t it?
These are the two methods discussed above working off of a simulated data set. The idea behind the math.round is to prevent the bad data reads which can happen when pulling Revit data and converting units.
right, float value is always dangerous, thanks and have great weekend!
What is auto lacing? I have never seen it before.
Something which appears to only have made it into the daily builds. I’m not yet comfortable enough to speak on it. Perhaps someone else more familiar will speak up on this, but might be best to wait until it’s commonly available before you start to worry.