09-21-2021
04:11 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-21-2021
04:11 AM
You can use direct API functions for this.
This sample expects the sheetmetal part is the active document and returns flatpattern dimensions in internal units [cm].
Dim part As PartDocument = ThisDoc.Document
Dim smCompDef As SheetMetalComponentDefinition = part.ComponentDefinition
Dim length As Double
Dim width As Double
If smCompDef.HasFlatPattern Then
width = smCompDef.FlatPattern.Width
length = smCompDef.FlatPattern.Length
End If