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 Array
esa_hietikko
Member Posts: 2 EDU
I have been trying to make a variable array, but did not succeed. Can anyone tell me how to do it?
Tagged:
0
Best Answer
-
thomas_kozak Member Posts: 38 ✭✭@NeilCooke I don't believe that is correct, the Documentation has a section on using arrays. You enter the array as [a,b,c,etc][x] where x is the position of the value you want (starts at 0). Notably, a,b,c and x can be variables so you can make things pretty complex.
As soon as we get variables derived from sketch elements this opens up a LOT of paremetric possibilities.7
Answers
If it is a geometry problem, please post an image or link to your public doc, thanks.
As soon as we get variables derived from sketch elements this opens up a LOT of paremetric possibilities.
Simple Block Doc
My understanding is that if you need to use variables in a pattern, you should sketch and extrude the one hole, and then use a face or feature pattern with the appropriate variables.
Eduardo Magdalena C2i Change 2 improve ☑ ¿Por qué no organizamos una reunión online?
Partner de PTC - Onshape Averigua a quién conocemos en común
https://forum.onshape.com/discussion/comment/30219#Comment_30219
In short, Onshape is designed to always regenerate deterministically (i.e. same parameters ==> same result). Onshape also allows modifying instances of sketch patterns, for example deleting certain ones. The problem here is that if you:
- Make a sketch pattern driven by a variable
- Edit/delete some instances
- Change the variable to a lower value (so the edited/delete instances are no longer present)
- Increase the variable again
... produces a problem: since the edited entities are destroyed when decreasing the pattern count, increasing the variable back to its original value will produce a different result, leading to non-deterministic regeneration.@alnis is my personal account. @alnis_ptc is my official PTC account.