Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I want to unfold a sheetmetal part. This works for at normal sheetmetalpart:
doc = ThisDoc.Document Dim DocumentSubType = doc.SubType If DocumentSubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then MessageBox.Show("This is a sheetmetal part") Dim smCompDef As Inventor.SheetMetalComponentDefinition smCompDef = doc.ComponentDefinition If (Not smCompDef.HasFlatPattern) Then smCompDef.Unfold End If End If
But if I use a skeleton part, and derive that one into a sheetmetal part, then this new sheetmetal part apparently doesn't have a ComponentDefinition of type=SheetMetalComponentDefinition? Above code fails at the line
smCompDef = doc.ComponentDefinition
So this is ok:
and this is doesn't work:
How do I get access to the sheetmetal definition of the last sample?
Solved! Go to Solution.