- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I'm working on parametric models and in some parts we also use splits. The problem I'm facing now is that the part I'm working on can have a horizontal split or a vertical split. The flat pattern has an alignment axis by default (in my case) set on a horizontal line, which is fine. But when I turn on the horizontal split the top of the part needs to be deleted, but the alignment axis is also placed here and causes an error. Because the edge/axis is not found.
So I wanted to add a second orientation named "Split" that is activated when the horizontal split is unsuppressed. I searched within the API help and came across the object "FlatPatternOrientation" which has a method named "Activate". I tried the following code, but it didn't work because it has to many arguments.
sheetMetalDef.FlatPattern.FlatPatternOrientations.ActiveFlatPatternOrientation.Activate("Split")
Can someone help me with this, please? Below is a photo that will (hopefully) make it easier to understand what my goal is.
Inventor 2021
Solved! Go to Solution.