Cross Section Optimization with multiple different Beam Ids

hello everyone !! am a beginner using grasshopper, I need help if it is possible !!!
I’m using Karamba for a project and I’m struggling with one thing: I’ve separated types of beam elements in 3 groups (diagonals, rings, and radials).
i want to set a cross-section for all the elements and then optimize each group separately, preferably the optimized cross-section will be similar for all the beams in each group.
is there any example similar to that?

thank u in advance!

Hi @user512 , sorry it seems we missed this thread.

Here is one example: (31.3 KB)

You can find this in the installation folder of Karamba3D.