|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > BOM > BuyList |
Creates the Buy List for the the currently selected document.
call DBWShell("BuyList [ xlsTemplateFile [ ListOnlyBUYComponents [ ListOnlyPARTs]]]")
xlsTemplateFile |
the template name to use ( default: DBWEXCEL.XLS ) |
|---|---|
ListOnlyBUYComponents |
0:list all components |
ListOnlyPARTs |
0:list all components |
@EXCEL_FILE_PATH |
the Excel .XLS file created by the Buy List procedure |
DBWorks browser must be open and Tree page must be active.
' Create the child tree for that assembly ( switch DBWorks to the Tree page )
call DBWShell( "ChildTree")
if (okDBW = False) then exit sub
' Create the buy list for the root of the tree
call DBWShell( "BuyList")
if (okDBW = False) then exit sub
excelFile = DBWResult( "@EXCEL_FILE_PATH" )
DBWMsgBox "BUYLIST OUTPUT AVAILABLE IN: " & excelFile