BOM base qty as FlatPatternExtents for Sheet Metal Parts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
In the snippet below is a Part List which is grouped by GS Stock Number. Then I get the total quantities under the QTY column. Each part has it's Bill of Materials Base Quantity set accordingly - that is found in Tools -> Options -> Document Setting -> Bill of Materials.
The issue I have is with Sheet Metal Parts. It would be the parts 501, 502, 503 in this example. (Yes in this case they're actually UHMW parts, but I need their areas so they're drawn as Sheet Metal parts). Can I show the sheet metal parts area under the QTY a little better? I wish it to be square feet, instead of inches. To get the values I have there I created a parameter "Extents" which I write with the little ilogic code here. But parameters can't have areas and I'm not sure if there is a way to get Base Quantity to show as area.
Does anybody have an idea on this? Thank you much!
Dim smlength As Double Dim smwidth As Double Dim oSMthk As Double = Parameter("Thickness") smlength = (SheetMetal.FlatExtentsLength + oSMthk) / 2.54 'added part thickness for cut kerf and divide cm to inches smwidth = (SheetMetal.FlatExtentsWidth + oSMthk) /2.54 Dim Area As Double = smlength * smwidth / 144 'given in sq ft Parameter("Extents") = format(Area, "0.00")