I am designing a railing and I am having a problem with the repetition of the railing.
The railing does not have a fixed number of intermediate uprights because the customer only has to enter the length and according to a maximum center distance, I calculate the number of uprights to be inserted. This part works properly.
For the barusting, the first repetition is not a problem because it exists in all cases, but for the others, I cannot recreate a body repetition because I cannot know the number of rung there will be in advance, Solidworks only allows the manual selection of the bodies and not the selection of the function.
Am I forced to go through VBA code to create the X repetitions?
It may be possible to define the number of repetitions according to a conditional formula as a function of a distance. I'm not in front of my PC, but you can create a reference (measurement point) and make sure to control this repetition from the equation management.
Edit: is it a repetition based on the result of another repetition?
If so, you can use the result of the first repetition as a condition in the formula instead of a distance.
@ Ac Cobra 427: Is it more twisted than it looks:)
@A.Leblanc: Yes, that's possible, that's how I do it for the repetition of the amounts according to the length. The problem is different for the rungs, the number of rungs in the first hop (i.e. between the side upright and the first center upright) the number of rungs can change and solidworks does not allow the bodies to select the bodies created by the linear pattern other than manually.
I'm going to try to go through an assembly. With two rooms:
Yes I realized it by rereading the question, on the other hand it will be used what and where??? Because it is not up to standard. Between two amounts there must be 1500 max. see attached link:
@Ac Cobra 427: I know that it does not comply with the NF standard... It is part of a lot of 31 railings to put on the terraces of an apartment building for rent. My client does not want to listen to me and wants to stay on the BE's calculation note.
I have set the distance between the amounts as a global variable in case he changes his mind and follows my recommendations.