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.
Defining constants to be referenced instead of typing a value in a bunch of places
duncan_thomas
Member Posts: 9 ✭✭
Hi
Hoping there's a quick answer to this. I'm coming from OpenSCAD, and one feature I can't find in onshape is the ability to give some value a name (e.g. 'LEVEL_THICKNESS = 10') and use this instead of a numerical value when setting up dimensions, extrusion lengths etc. I found this very handy in the past, and I miss it here. I can sort of do it using constraints by arbitrarily picking one edge to be the 'master' edge, but I'd rather just have it in a list I can edit somewhere, rather than trying to remember which I picked as master.
It would also be handy to be able to do simple math, like '2*LEVEL_THICKNESS' or 'LEVEL_THICKNESS + MIN_GAP', although that is solvable using multiple shapes and constraining them to be next to each other.
Loving the videos and looking forward to finding time to experiment more.
Hoping there's a quick answer to this. I'm coming from OpenSCAD, and one feature I can't find in onshape is the ability to give some value a name (e.g. 'LEVEL_THICKNESS = 10') and use this instead of a numerical value when setting up dimensions, extrusion lengths etc. I found this very handy in the past, and I miss it here. I can sort of do it using constraints by arbitrarily picking one edge to be the 'master' edge, but I'd rather just have it in a list I can edit somewhere, rather than trying to remember which I picked as master.
It would also be handy to be able to do simple math, like '2*LEVEL_THICKNESS' or 'LEVEL_THICKNESS + MIN_GAP', although that is solvable using multiple shapes and constraining them to be next to each other.
Loving the videos and looking forward to finding time to experiment more.
0
Best Answer
-
3dcad Member, OS Professional, Mentor Posts: 2,472 PROYou're talking about parametric dimensions. This is not implemented yet, but it is highly requested feature and you can find plenty of discussions around. Use ?-menu and give Onshape feedback so they will add you to the request and you will be informed when it's implemented.
//rami5
Answers