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.
Changing variable value breaks sketches inconsistently
paul_botwid
Member Posts: 6 ✭
Hi,
In modeling a parametric box design, I encountered some weirdness when working with variables to control the boxes dimensions.
Basically, when I change a parameter / variable like the box height, it often breaks one of the sketches.
However, if I go into the affected sketch and do a slight change, like adding 0.1mm to a dimension, the new variable value works.
After this, if I go back and reset the dimension to the original value (then didn't work the first time) - the sketch still works out.
Bit hard to explain but please see the attached video and maybe it's clearer.
https://www.youtube.com/watch?v=LGMTfAJhJDg
Any thoughts as to why this might happen and how to solve it?
Is it just a bug or is there something I can do to prevent it?
Thank you
In modeling a parametric box design, I encountered some weirdness when working with variables to control the boxes dimensions.
Basically, when I change a parameter / variable like the box height, it often breaks one of the sketches.
However, if I go into the affected sketch and do a slight change, like adding 0.1mm to a dimension, the new variable value works.
After this, if I go back and reset the dimension to the original value (then didn't work the first time) - the sketch still works out.
Bit hard to explain but please see the attached video and maybe it's clearer.
https://www.youtube.com/watch?v=LGMTfAJhJDg
Any thoughts as to why this might happen and how to solve it?
Is it just a bug or is there something I can do to prevent it?
Thank you
0
Answers
https://cad.onshape.com/documents/3283dbe6d83efeb907beacf1/w/0241c8895702586fb9ece9c8/e/d670b6448b42a3b11424815d?configuration=Box_depth=0.084+meter;Box_height___bottom=0.028+meter;Box_width=0.12+meter;Corner_radius=0.012+meter;Hinge_width=0.004+meter;Lid_height=0.012+meter;Rib_thickness=0.0016200000000000001+meter;Rib_width=0.003+meter;Screw_length=0.025+meter;Screw_size=0.002+meter;Tolerances=2.0E-4+meter;Two_snaps=false;Wall_thickness=0.0016+meter;chamfer_fillet=0.006+meter&renderMode=0&uiState=661917804e4d5429c3f49716
How do I go about this?
Thanks for your patience!
https://cad.onshape.com/documents/9fdce3e730fdcd1def104606/w/cc6e5019dbc2a68a28d32d4a/e/28d53a057503e0fbc4746706
Thank you for you input.
I see now that I've gone the long route creating my parameters, the way you're showing is so much easier. I will try adopting this and see if it makes a difference. I was also advised by the onshape support to use my variables to drive the positioning of the malfunctioning sketch, tying it directly to the height of the box for example.
Kind regards,
Paul