Table of Contents

BOM Command Documentation

DESCRIPTION:

The BOMCommand allows you to extract a Bill of Materials from a SOLIDWORKS file inside the PDM vault and export it to a CSV file.
This command supports configuration evaluation using $configuration, allows specifying configNames, and supports selecting a layout from all available BOM layouts.

SYNTAX:

bom -filePath -name -directory -configNames -layout

PARAMETERS:

  • filePath
    Path to the SOLIDWORKS file whose BOM you want to export.

  • name
    The base name for the exported CSV file.
    Supports evaluation (e.g., $configuration).
    More information here.

  • directory
    Target folder where the CSV will be saved.

  • configNames
    Comma-separated list of configurations to extract the BOM from. If unspecified, all configurations are processed. Example: @,Default,Manufacturing.

  • layout
    A comma-separated list of BOM layout names to export.
    Example: Engineering,Manufacturing.
    PDMShell validates layout names against PDM before exporting.