Message 1 of 3
SheetMetal.FlatExtents in a loop

Not applicable
10-16-2018
02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Could someone help me modify the below code to pull the flat length & width extents from each sheet metal part in my For loop ? It returns 0 for both at the moment.
For Each oRow As BOMRow In oBOMRows oRowCompDef = oRow.ComponentDefinitions.Item(1) If oRowCompDef.Document.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}" Then Dim oCD As SheetMetalComponentDefinition = oRowCompDef FlatLength = SheetMetal.FlatExtentsLength FlatWidth = SheetMetal.FlatExtentsWidth MsgBox(oRowCompDef.Document.DisplayName & vbLf & "Length = " & FlatLength & vbLf & "Width = " & FlatWidth) End If Next