Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, i'm having an issue with the ribbon tab.
When i execute this code from an assembly, to unfold all sheetmetal parts, the main assembly ribbon tab turns in a sheetmetal ribbon tab.
Sub createFlatPattern(doc As PartDocument)
Dim metaldef As SheetMetalComponentDefinition
Set metaldef = doc.ComponentDefinition
If Not metaldef.HasFlatPattern Then
metaldef.Unfold
metaldef.FlatPattern.ExitEdit
End If
End Sub
As you can see, i'm currently in a assembly document and the sheetmetal ribbon tab is active.
I want a way to fix it, please.
Solved! Go to Solution.