Auto Unfold
Have you ever gone to place a drawing view of some sheet metal and the flat pattern option is greyed out? This little ditty I composed slips straight in your iLogic rule and simply unfolds the part and folds it back up again, creating a flat pattern in the process. Stick it on a trigger just before save in your template file and never have to worry about this happening again! Dim oDoc As PartDocument oDoc = ThisDoc . Document Dim State As SheetMetalComponentDefinition State = oDoc . ComponentDefinition If State . HasFlatPattern = False Then State . Unfold ThisDoc . Document . ComponentDefinition . FlatPattern . ExitEdit End If