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.
Sheet metal thickness custom property computed value.
KahuEVNZ
Member Posts: 2 PRO
I've created a custom feature for the thickness of a sheet metal part (to be used in a BOM). Currently, you have to type in the thickness manually but it would be nice if the value could be computed.
If you set the thickness of a sheet metal part to be 3mm, I am curious how you would get this value in a custom feature to be used as a computed value.
I have made/modified a couple of custom features before but I am far from an expert. Thank you.
I would like this thickness value to be used in a custom feature.
I would then use it to compute the value of a custom property.
If you set the thickness of a sheet metal part to be 3mm, I am curious how you would get this value in a custom feature to be used as a computed value.
I have made/modified a couple of custom features before but I am far from an expert. Thank you.
I would like this thickness value to be used in a custom feature.
I would then use it to compute the value of a custom property.
Tagged:
0
Comments
https://cad.onshape.com/FsDoc/library.html#setAttribute-Context-map
And then in your computed part property, just read the attribute back out.
Or, instead of using a computed part property, just use a normal property and set it with the featurescript.
https://cad.onshape.com/FsDoc/library.html#setProperty-Context-map
SetProperty can set the value of a custom property if you have the property id.