BomDelete

<< Click to Display Table of Contents >>

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

BomDelete

Description

Only for drawings, this command deletes the existing BOM from the sheet(s);
It's the API for the toolbar functionality BOMdelete

Syntax

call DBWShell("BomDelete  UID  CurrentSheetOnly")

Parameters

uid

unique id of the drawing to create the BOM into.

CurrentSheetOnly

0: deletes the BOM from current sheet only
1: deletes the BOM from every sheet in the drawing document

Example

...

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