Applying random wind braces in a copied construction

Hello everyone, I have set up the geometry of a shed. I have set up a portal with various parameters and basically copied it. The structure is unbraced in the X-direction (i.e. with rigid connections).

I want to stabilise the Y-direction by applying wind bracing in the roof and in the façade.
Ideally, I would like to click a button where I can indicate that I want wind bracing in the roof between, for example, grid lines 2-3 and wind bracing in the façade between, for example, grid lines 4-5.
Ideally, I would like to click on a button where I can indicate that I want a wind brace in the roof between, for example, grid 2-3 and wind braces in the facade between, for example, grid 4-5. However, I don’t know if this is possible and how to go about it. Since I have copied most of the construction, most of the data, such as coordinates, etc., are in the various lists.

Could someone help me/advise me on whether this is possible and how I can best do this?

I look forward to your response.
Geometrie hal - gelijke stramienmaat.gh (21.8 KB)

Hi, this is one method you can do this, using a simple slider


Geometrie hal - gelijke stramienmaat-mt.gh (18.8 KB)

Thank you for the explanation.
I have a similar problem in the attached document. I basically followed the steps you showed me, but I still have crosses in every box. Something is going wrong here and I have no idea what it is.

Could you help me again and explain what I am doing wrong?

Geometrie hal.gh (16.4 KB)

Hi Bas, no this is correct, you just need to hide the preview of the previous components

Okay, thank you for the information!
But now I’m wondering, I’ve turned off the components by turning off the ‘preview’. But does that also remove the lines from the model, or does it just turn off the visibility?
So if I apply a horizontal load to the structure, it won’t take all the wind bracing into account? It will only take into account the wind bracing that I specified via the ‘index’?

I look forward to your response.

turning off the preview means that you just dont see them, but it will not affect what you input into your karamba3d mdoel for analysis

But the more braces I apply, the more favourable and rigid the construction will become. So I really only want to include the braces that you can actually see.
In principle, I don’t want to include the braces that are no longer visible when I turn off the preview for the structural analysis.

I created this function so that I can choose the pattern in which I want to apply the braces.

Sorry but I am a bit confused, turning off the display will not change anything in the Karamba3D calculation, as it depends on the geometry input that you input into the CreateLinearElement component.