Python AutoCAD BOM Extraction

Заказчик: AI | Опубликовано: 13.11.2025

I need a clean Python routine that can open my DWG-format AutoCAD drawings, scan the model space for all relevant entities, and generate a concise Bill of Materials. The script should pull names, quantities, and any existing block or attribute data, then aggregate everything into a structured CSV (Excel-ready). Key details • All input files are DWG. • I prefer an open-source stack—ezdxf, pyautocad, or a similar Python library that can be installed with pip. • No manual clicks: the entire process must run head-less from the command line. Deliverables – Python source code with clear in-line comments – A quick-start README describing environment setup and usage – One sample run using my test DWG that produces a valid CSV so I can verify accuracy Acceptance The script is done when it consistently returns a correctly formatted BOM that matches the quantities shown in my test drawing.