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.
[Feature Request] - Configurable minimums/maximums for Configuration Variables
Chris_Kelly
Member Posts: 8 EDU
It would be nice if I could either directly configure the definition values for a configuration variable or use another configuration variable and expressions inside of them. I find myself wishing this was a thing pretty often when setting up complex configurations, so I can avoid invalid values more easily depending on other values instead of having to do broad limits.
12
Comments
I second this request. Have you found any work arounds?
Do you have any specific situations or examples? That would help in providing the relevant work-arounds.
combining array's into a variable comes to mind and is very powerful.
The model I'm working with right now is not mine to share, but it is essentially one highly configurable thickened surface model of a chair back. The model pretty seamlessly accommodated a huge variety of widths, heights, and other variables. Some applications require a divot in the chair back (shown below). I'd like to use configurable min/max limits on the placement and size of the divot to prevent it from being placed outside the bounds of whatever the chair back's width/height happens to be configured to right then.
Here's a video I released recently that covers a workaround. Should have another one up today that expands on it.
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
Here's one with a better approach. I'd still like to have configurable min/max on configuration variables though
The Onsherpa | Reach peak Onshape productivity
www.theonsherpa.com
My example is for a text label on my nut and bolt tubs, I have many different labels and I want to set the size maximum of the text within the label so that it doesn't go over the edges. I have many copies of these labels in a project with all different things on them (different sizes etc) I have the nominal size set by a variable in the text so I can just change the variable from 5 to 6 and all the labels change from M5 to M6. But I am experimenting with different fonts and want to get the biggest and clearest text I can within the confines of the label. In the screenshot below the MFW part is what I want to set maximums on. When I change the font or the height of the text some of the labels will no longer fit width wise (width currently unrestrained)
@phineas_phog
I think this is what you are trying to do?
This is one way to do it, I used the bounding box FS but you could probably just get away with a measured variable of the text box width to simplify things…
https://cad.onshape.com/documents/691dc3dfc28f13d9c5f7a6fb/w/b959d623f3efe63dfea46f91/e/5bd3419483a0ece428be1757?configuration=text%3DABC&renderMode=0&tangentEdgeStyle=1&uiState=69a0947bb5ab3fd2d6608bd4