More elements than given

Hi everyone!
I’ve stumbled upon a slight problem, I’m working with the karamba plugin and when I try to give every element a different tag/ ID (I have 41 tags and 41 lines/ curves and no duplicates) the component (line to beam) of karamba ends up giving 48 results 7 more than I put into the component. I am not entirely sure what it is as I see duplicate tags and there might also be duplicate elements but with seperate tags? I’m not sure. Grafting/ flattening either or both does not seem to fix it.


Down below is the gh file (the red grouped area to the right is the point I’m working on right now).
Changed model.gh (91.5 KB)

Hi, you need to make sure your lists match. If you flatten the Line input then elements are created correctly. All polylines are automatically exploded and those line segments are given the same id.

Yes so I tried that already, it still gives me 48 elements instead of 41 for some reason.

I found the problem. I set up the tag list as I did with the lines (in three sets) and it seemed like the problem was with the second set of lines.

Like the lines are in three sets with an N of 14, N=7 and N=20 (same for the tags).

But after the input in the line to beam component it lists three groups with N=14, N=14 and N=20 instead.

So I looked into that set (second one) and found they were listed as ‘polyline curves’ instead of ‘lines’ like the others. So I changed those to lines as well and now I have no problems anymore. Thank you for the help anyways!

yes polylines are automatically exploded into curves so that is why the output was originally 48 not 41