Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a sheet metal part that has set Sheet Metal Rules and Unfold Rules in Sheet Metal Defaults. And I have the working code to change the active sheet metal rule via "SheetMetal.SetActiveStyle" working just fine.
SyntaxEditor Code Snippet
If SYSTEM="AC-10C" Or SYSTEM="AC-20C-A" Or SYSTEM="AC-20C-B" Or SYSTEM="AC-20C-C" Then SheetMetal.SetActiveStyle("4MM COMPOSITE") ElseIf SYSTEM="AC-10P-A" Or SYSTEM="AC-10P-B" Or SYSTEM="AC-10P-C" Or SYSTEM="AC-20P-A" Or SYSTEM="AC-20P-B" Or SYSTEM="AC-20P-C" Then SheetMetal.SetActiveStyle(".125 ALUMINUM") ElseIf SYSTEM="AC-10ST-A" Or SYSTEM="AC-10ST-B" Or SYSTEM="AC-10ST-C" Or SYSTEM="AC-20ST-A" Or SYSTEM="AC-20ST-B" Or SYSTEM="AC-20ST-C" Then SheetMetal.SetActiveStyle("14 GA. STEEL") End If
But I can't find the code to change the Unfold Rule along with it. Each Sheet Metal Rule has its own matching Unfold Rule with its own custom equations.
I know you can set the Unfold Rule under the Sheet tab of the Sheet Metal Rule, but how do you automatically make that rule the default unfold rule in the various part features.
Thanks in advance.
This is Inventor Professional 2017 btw.
Solved! Go to Solution.