BomRefresh

<< Click to Display Table of Contents >>

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

BomRefresh

Description

Only for drawings, this command refreshes the existing BOM;
It's the API for the toolbar functionality BOMrefresh

Syntax

call DBWShell("BomRefresh  UID  CurrentSheetOnly")

Parameters

uid

unique id of the drawing to create the BOM into.

CurrentSheetOnly

0: updates all sheets defined in the drawing document
1: updates current sheet only

Example

...

DBWShell("GetActiveDocUniqueId")
DocumentUid = DBWResult("@DOCUMENT_UNIQUE_ID")
DBWShell("BomRefresh " & DocumentUid & " 1")
...