Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Variable Assembly Configurations
Cris_Bowers
Member Posts: 281 PRO
I'm struggling with creating configurations in this assembly. I have a panel that can vary in height from 1 to 12 feet depending on where it's used. It will contain between 1-3 "ribs" depending on the height. I'm able to configure the panel height by linking variables between the assembly and the part studio, but I'm struggling with the ribs. The best I have been able to come up with is to create a sketch with the pattern in the part studio, insert it into the assembly, mate each rib to points on the sketch, and configure the suppression with a variable in the assembly. It would be very helpful if assembly patterns had an "up to" option, because it gets around the problem of having to insert, mate, and suppress each instance. This is one of those times where this was easier in Solidworks and things are extra time consuming for me to complete in Onshape. Can anyone think of a better way to do this?
There is a front and back panel configuration. The bottom rib has 2 different dimensions it can be mounted for either side; 10" and 36" for the front, or 14" and 40" for the rear. The top rib has two different dimensions it can be mounted from the top; 10" for front and 14" for rear. The middle rib will be centered between those. As the panels gets shorter, to where there would only be 60" between the bottom and top rib, the center rib will be suppressed. And when the panel is less than 36" tall I will only have the bottom ribs.1
Comments
Thankfully there is a feature script for this
https://cad.onshape.com/documents/25c5ccb6a4d02f0be468071d/v/eb4faab0fc6209aee5674b81/e/6d5ae391574d2083c40e19a0
If it is a variable, you should be able to make the pattern count automatic
Distance: (ceil((#height/inch-X)/(ceil((#height/inch-X)/Y)-1))) in
Instance Count: ceil((#height/inch-X)/Y)
Where
X = Lower Offset + Upper Offset
Y = Distance Between Gussets
https://cad.onshape.com/documents/3b091f4f0c3e78d0b2d11ac2/w/b630b13c0e851596c1ed491a/e/ae35e35f28fd0ba3f71bacab
you can add logic to the lower mate connector to center everything up, and clean up the math, but I'm out of time at the moment.