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.

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?

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.

@brucebartlettYou 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)