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 Fold

I am in the middle of trying to make a FeatureScript that lets the user "fold" a sheet metal part.
However, I am having trouble determining the rotation axis once I have split the underlying sheet metal model.
I have modelled up a sample cross-section of a sheet metal part here
I have determined the rotation axis using a sketch, however, I would like to make a FeatureScript formula to get the location.
@konstantin_shiriazdanov , could you help?
However, I am having trouble determining the rotation axis once I have split the underlying sheet metal model.
I have modelled up a sample cross-section of a sheet metal part here
I have determined the rotation axis using a sketch, however, I would like to make a FeatureScript formula to get the location.
@konstantin_shiriazdanov , could you help?
mb - draughtsman - also FS author: View FeatureScripts
0
Comments
Hi, I found raius "r" which is the horizontal distance from rotation axis to the line of length "l1", so you can transform this result in terms of coordinates of the rotation axis origin. Is that what was needed?
Could you make it in FS code?
Is that right?
Also, what are c and g?
What do c and g mean?
In Onshape it is atan().
And i suppose tg() is tan()
I have got it working in my part studio and here is the FS:
https://cad.onshape.com/documents/9f116620b0f6d04445f57293
Nothing changes
You should be able to use it for angles in the opposite direction now.
You just can't fold it directly from a flat face (I don't know why, so maybe @lana could help)
Well they are making a hem feature
It doesn't seem to work if the edge selected to be "fixed" is on the face that is bent. (The edge's id seems to change internally after the sheet metal internal body is split)
Are you using split part or split face? Split part has to create new tags internally because it creates a new body. This should be somewhat stable due to our tracking, but once it goes through the sheet metal system it probable loses that associativity. My recommendation would be to split the face, and then use move face-rotate to rotate the faces in question. You may already be doing this, I haven't looked into the code.
re: hems, you found our big secret
I am using split part, then boolean.
The reason I found out about the hems was because, when I updated my feature to FS Version 937, it told me that that symbol already existed.
Twitter: @onshapetricks & @babart1977
If i do this:
It highlights the wrong side of the sheet metal part (the one that's going to be transformed)
You will have to make a flange somewhere on the sheet metal and select that as the fixed part.
You can then use the bend feature.
Once you're done, you can do an extrude+remove on the flange (the sketch you use must include the bend)
Sorry it took me some time to get back to you on fixed reference stabilization.
I did:
Please see in this copy of your document
https://cad.onshape.com/documents/747286511d2736b6ec7f42a9/w/8187e95388ab7c0019b24fb8/e/a4e55c145d68860ba4080549
I also had to make my own function remapCornerBreaksForSplitFaces to deal with the walls that were split (It is based on remapCornerBreaks)
Thank you for extending sheet metal functionality.