BuyList

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > DBWCommandShell > Commands Reference > BOM >

BuyList

Description

Creates the Buy List for the the currently selected document.

Syntax

call DBWShell("BuyList [ xlsTemplateFile [ ListOnlyBUYComponents [ ListOnlyPARTs]]]")

Parameters

xlsTemplateFile

the template name to use ( default: DBWEXCEL.XLS )

ListOnlyBUYComponents

0:list all components
1:list only component with BUY attribute

ListOnlyPARTs

0:list all components
1:list all parts

Results

@EXCEL_FILE_PATH

the Excel .XLS file created by the Buy List procedure

Remarks

warningDBWorks browser must be open and Tree page must be active.

Example

' 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