Use Ilogic to set Flatpattern Orientation

Use Ilogic to set Flatpattern Orientation

briant.markham
Enthusiast Enthusiast
1,487 Views
4 Replies
Message 1 of 5

Use Ilogic to set Flatpattern Orientation

briant.markham
Enthusiast
Enthusiast

I do a lot of right hand/left hand sheet metal parts that are currently driven by ilogic through a form, but when I switch from right hand to left hand it breaks all my drawings, because the flat pattern randomly changes orientation when I mirror a part, I can set up an oriention for the mirrored version and the regular version and then the drawings work fine and the dimensions reattach, but changing the flat pattern orientation requires opening the part, switching to flatpattern mode and editing the "flat pattern definition" and changing it manually there and hitting apply. There has to be a way to switch the named faltpattern oriention with ilogic. Any help would be appreciated.

0 Likes
Accepted solutions (1)
1,488 Views
4 Replies
Replies (4)
Message 2 of 5

JelteDeJong
Mentor
Mentor

hi you can edit the "flat pattern definition" by iLogic. Below an example for flipping the alignment axis.

Dim doc As PartDocument = ThisApplication.ActiveDocument
Dim sheetMetalDef As SheetMetalComponentDefinition = doc.ComponentDefinition
sheetMetalDef.FlatPattern.FlatPatternOrientations.ActiveFlatPatternOrientation.FlipAlignmentAxis = True

the "ActiveFlatPatternOrientation" has more methodes for editing the "flat pattern definition". you can find them in the help.

ActiveFlatPatternOrientation.png

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

0 Likes
Message 3 of 5

briant.markham
Enthusiast
Enthusiast

Where is that search page located?

0 Likes
Message 4 of 5

JelteDeJong
Mentor
Mentor
Accepted solution

i refered to "progarming/api help". In inventor 2018 you get to it like this:

start_help.png

searchtap.png

Jelte de Jong
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature


Blog: hjalte.nl - github.com

Message 5 of 5

briant.markham
Enthusiast
Enthusiast

I figured it out with that API help documentation, Thanks.

0 Likes