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.
bug in using variables for parts studio linear pattern
david_lang457
Member Posts: 87 ✭✭✭
in Drawings
If you use a variable for a distance when doing a linear pattern in a sketch, it looks like it works (the right value shows up after hitting enter), but it's not saving the reference to the variable, instead it's just putting in the current value of the variable. If you change the variable, the pattern does not rearrange itself
you can go back after you finish the pattern and double click on the dimension and see that it's a number. you can then change it to a variable and it saves it
you can go back after you finish the pattern and double click on the dimension and see that it's a number. you can then change it to a variable and it saves it
Tagged:
0
Comments
I created a variable 'spacing' = 2 in
created a sketch with two circles
set a pattern with the top circle, changed the offset to #spacing, saved it, pattern is at a fixed 2"
set a pattern with the bottom circle, changed the offset to #spacing, saved it, edited the offset again and again set it to #spacing, pattern is at 2"
changed the value of #spacing to 3", the offset of the bottom changed, the offset of the top did not.
this only happens if you set the offset to the variable before clicking to complete the pattern
1. create a variable #s
2. create a sketch
3. create a shape
4. select linear pattern
5. select the shape created in 3
6. double-click on the offset (default 25mm or 1 in) enter $s and hit enter twice
7. click to finish the pattern
8. save the sketch
9. change the value of #s and see that the pattern doesn't change
10. edit the sketch
11. double click on the offset, see it is a constant, type #s and hit enter twice
12. save the sketch
13. change the variable and see that the pattern does change
Side note: you can change the value of a "regular" variable while editing a sketch if you use the variable panel on the right. It's not related to the issue but I thought I'd mention it as it's quite a helpful shortcut...