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
MBartlett21
Member, OS Professional, Developers Posts: 2,050 ✭✭✭✭✭
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?
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?
IR for AS/NZS 1100
Is that right?
Also, what are c and g?
IR for AS/NZS 1100
What do c and g mean?
IR for AS/NZS 1100
In Onshape it is atan().
And i suppose tg() is tan()
IR for AS/NZS 1100
I have got it working in my part studio and here is the FS:
https://cad.onshape.com/documents/9f116620b0f6d04445f57293
IR for AS/NZS 1100
Nothing changes
IR for AS/NZS 1100
You should be able to use it for angles in the opposite direction now.
IR for AS/NZS 1100
You just can't fold it directly from a flat face (I don't know why, so maybe @lana could help)
IR for AS/NZS 1100
IR for AS/NZS 1100
Well they are making a hem feature (click here)
IR for AS/NZS 1100
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)
IR for AS/NZS 1100
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.
IR for AS/NZS 1100
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)
IR for AS/NZS 1100
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)
IR for AS/NZS 1100
Sorry it took me some time to get back to you on fixed reference stabilization.
I did:
var wallAttFace = qIntersection([qOwnedByBody(bodyForTransformTrackingQ, EntityType.FACE), qEdgeAdjacent(edgeForTransform, EntityType.FACE)]);
Please see in this copy of your documenthttps://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)
IR for AS/NZS 1100
Thank you for extending sheet metal functionality.