using Autodesk.AutoCAD.ApplicationServices; using Autodesk.AutoCAD.DatabaseServices; using Autodesk.AutoCAD.Runtime; using System; using System.Collections.Generic; using System.Linq; using System.IO; public class BlockBOMExtractor { [CommandMethod("ExtractBlockBOM")] public void ExtractBlockBOM() { Document doc = Application.DocumentManager.MdiActiveDocument; Databas..