How do you make a repetition of variable occurrence?

Hello everyone

On my joint assembly, I would like to vary a repetition of a part with respect to a given length

for example attached every 100 I have to add an amount

In my master sketch I only control my length and the number of occurrences follows by itself on my assembly.

I would like to know how to control this length from my assembly?

And if my method is the right one or at least the simplest?

thank you in advance


test_repetition_gp_kotest.zip

Post an image if possible

I put the solidworks is not enough?

 

On such a it is not so easy to open

A solidworks file mostly zipped

moreover we don't all have the same SW version

@+

 

1 Like

OK

I posted two jpgs

You have to put an equation between the number of instances and your length.

See this tutorial among others

 

https://www.lynkoa.com/contenu/les-répétitions-avec-solidworks-avril-2015-0

Otherwise I posted a Max tutorial on rehearsals 

See in my tutorials

you should find what you're looking for 

@+

 

In my Excel spreadsheet, I put conditions

if length = 100 then 1 amount

if L between 100 and 200 then 2 M ...

It's just that I would have liked to have piloted my length in my general assembly and not in my main sketch piece