Skip to content

Navigation Menu

Sign in
Sign up

BOM Export To CSV

KaiUR edited this page May 21, 2026 · 4 revisions

BOM Export To CSV

File: Product_Document_Scripts/BOM_Export_To_CSV.py
Version: 1.1
Document Type: Product


Description

Recurses through the full active CATProduct tree and exports a bill of materials to a CSV file. Each row represents one component instance. The CSV is saved next to the CATProduct file, or in the user's Downloads folder if the product has not been saved.


Requirements

Requirement Value
Python >= 3.10
pycatia >= 0.8.3
wxPython Not required
Open document CATProduct

Usage

  1. Open a CATProduct document
  2. Run the script
  3. The CSV is written automatically — no selection required

Output

A CSV file named <ProductName>_BOM.csv saved next to the CATProduct, containing:

Column Description
Level Depth in the assembly tree (1 = top level)
Part Number Part number of the component
Instance Name Name of the instance as shown in the spec tree
Description Definition field from the component properties
Nomenclature Nomenclature field from the component properties
File Name File name of the referenced document

Notes

  • Sub-assemblies are included in the flat list; use the Level column to reconstruct the hierarchy
  • Part Number, Description, and Nomenclature are read from the reference product, not the instance
  • The script does not modify the product in any way

Home


Getting Started


Contributing


Any Document Scripts


Drawing Document Scripts


Part Document Scripts


Shape Generation Scripts


Process Document Scripts


Product Document Scripts


Utility Scripts


Legal

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /