<p>Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.</p></p><strong>First time visiting? Here are some places to start:</strong></p><ol style="list-style:inherit;margin-left:25px;"><li>Looking for a certain topic? Check out the <a href="https://forum.onshape.com/categories">categories filter</a> or use Search (upper right).</li><li>Need support? <a href="https://forum.onshape.com/post/question/community-support">Ask a question</a> to our <a href="https://forum.onshape.com/categories/community-support">Community Support</a> category.</li><li>Please submit support tickets for bugs but you can request improvements in the <a href="https://forum.onshape.com/categories/product-feedback">Product Feedback category</a>.</li><li>Be respectful, on topic and if you see a problem, Flag it.</li></ol><p>If you would like to contact our Community Manager personally, feel free to <a href="https://forum.onshape.com/profile/6/LouGallo">send a private message</a> or <a href="mailto:lgallo@onshape.com">an email</a>.
</p>
</p>
Problems with parametric assembly with linear pattern with an instance count of 1
tarquinio_mota
Member Posts: 5 ✭
Hello. I'm trying to create a project to create different parametric pin headers for electronics of different sizes so everyone can use it. You can see it here:
https://cad.onshape.com/documents/7b4512076b13fe548394027b/w/15d4905653b02cfec0b9cef5/e/fd170b95ad884dd2cad66a7d?configuration=DoubleRow=false;PinColumns=1.0;PinCount=2.0;Single_Pin=false;Solder=false
I have a PinRows and PinColumns variables to generate exactly the number of pins and disposition needed. Then I made a linear pattern in 2 directions using these two variables. The problem is that these values need to be >1. I use a workaround for this using a checkbox variable to toggle between single row / multiple rows. I use two linear patterns, one with a single direction and another with two directions, and suppress one of them depending on the checkbox variable. It feels a bit strange not just being able to set the value to 1, like we can do in the part studio linear patterns. Is there something i'm missing here?
Alternatively, if the values can't be one, is there a way to configure the suppressions based on the numeric variable (like supressing one if PinColumns>1 and suppressing the other one otherwise)?
Thanks in advance for any help.
https://cad.onshape.com/documents/7b4512076b13fe548394027b/w/15d4905653b02cfec0b9cef5/e/fd170b95ad884dd2cad66a7d?configuration=DoubleRow=false;PinColumns=1.0;PinCount=2.0;Single_Pin=false;Solder=false
I have a PinRows and PinColumns variables to generate exactly the number of pins and disposition needed. Then I made a linear pattern in 2 directions using these two variables. The problem is that these values need to be >1. I use a workaround for this using a checkbox variable to toggle between single row / multiple rows. I use two linear patterns, one with a single direction and another with two directions, and suppress one of them depending on the checkbox variable. It feels a bit strange not just being able to set the value to 1, like we can do in the part studio linear patterns. Is there something i'm missing here?
Alternatively, if the values can't be one, is there a way to configure the suppressions based on the numeric variable (like supressing one if PinColumns>1 and suppressing the other one otherwise)?
Thanks in advance for any help.
0
Best Answer
-
Unfortunately the way you are doing it is the only way to do it right now. Please vote here: https://forum.onshape.com/discussion/6159/allow-pattern-feature-count-less-than-2Senior Director, Technical Services, EMEA6
Answers
-
Unfortunately the way you are doing it is the only way to do it right now. Please vote here: https://forum.onshape.com/discussion/6159/allow-pattern-feature-count-less-than-2Senior Director, Technical Services, EMEA6
-
@tarquinio_mota You could always try to do something like I did with this coffee mug: https://cad.onshape.com/documents/ae1059d04281a2cb4b1afcf9/w/e49436d97c3c6052ac298647/e/c970c2f937b327fbf2b4a5b1
I created a true/false variable and checked on its condition to switch between different values. I suspect you may be able to try something like this to help out.

0 -
@bradley_sauln I did try similar solutions, but with no luck. In my case I don't have configuration tables, just numeric input values. And since we can't configure supressions based on conditional values (like N>1) i always need to make a redundant variable.
0


