Select Beams by start Z height and end Z height. Distribute Loads

Hello guys,
I would like to ask for some help in getting to

  1. Select Beams by entering start Z value and end Z value.
    In this way I could select all the top horizontal beams in a complex model (without entering IDs manually in a more complex scenario) and getting the IDs of the selected beams so as to apply uniform loads on the beams.

  2. Afterwards I would like to apply a Beam Load to the 3 top Beams, but distribute the Total Load, in 3 Load Beams according to the beams’ length in order to have a uniform load situation per length unit of each beam.

Any help is greatly appreciated.
I attach screenshot and file. Thank you.

test_1.gh (34.4 KB)

if you sort your input lines per vertical height before inputting them into Karamba3D , then Karamba3D keeps the exact beam order starting from index 0 to the max beam number . Then you can use the Beam Load component to apply a uniformly distributed load to those 3 beams by inputting those specific indexes

ok, but if I dont have a fixed number of top lines in a case of GA eg, or want to select beams with specific inclination, let’s say from 0 to 1, and another set from 5 to 5 (horizontal at 5), and another set horizontal at 6, etc… it cant be done…

well you can do everything parametrically by setting some rules in GH then.