Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. 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_thomasduncan_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.

Best Answer

Answers

Sign In or Register to comment.