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.
Suppressing Variables in a Dimension
Michael_Coffee
Member Posts: 91 ✭✭✭
I have a part feature that is dependent on multiple variables and these drive values in a configuration table. If I configure one of those variables to be suppressed, the sketch goes red and it will not compute anything. Is this intentional (I suspect it is) and if so, has anyone made an improvement request for it? I would really like it to be able to handle suppression of a variable, because as a consequence, I now have to create five other features to handle when that variable isn't factored into the model. Ugh x.x Thankfully, it doesn't affect the model regen time any more than normal.
Tagged:
0
Answers
HWM-Water Ltd
Link down below for an example of what I'm doing. Of course, it's an incredible simplification, but it gets the point across. There's a dimension with two variables in how it's computed. Say #V1=10 & #V2=3. Together they make 13. If I wanted to suppress #V2, but still use it, it gives me an error.
What has happened since my last post is that my work around has not worked as well as I first thought >.> I didn't realize I ended up making another "part" in the studio and ended up accidentally deleting the original data set that I needed. Thank goodness for versions @.@ Back to the drawing board.
https://cad.onshape.com/documents/60063a5e668f6d9233f4f82e/w/eeccd61290c694ef3b334ad4/e/b3c4cf52f8f384654fe5071c?configuration=List_H68a1qc6Af5rK0=_4_
Seems to be working fine, please add a screenshot of the error you are seeing:
https://cad.onshape.com/documents/38aed038489cb25e11dac503/w/ffa026114439741296ab9ce3/e/57bd2b9f48f617d64f91c4b2
`abs` needs to be lowercase. Expression execution here uses FeatureScript as its engine, so you are basically calling directly into FeatureScript when you type an expression like this. In general, all of our FeatureScript function will be in camelCase. You can search through this page to see if something exists: https://cad.onshape.com/FsDoc/library.html, but luckily we recently added autocomplete to all fields that take expressions, so as soon as you type `ab`, `abs` will probably show up as an option and you can press enter to finish the autocomplete.
I suspect that you got here by copy-pasting from excel or similar though?