Author Topic: How to generate an excel list with all block names from multiple drawings?  (Read 784 times)

0 Members and 1 Guest are viewing this topic.

CAD_guru

  • Guest
How to generate by a LISP routine an Excel list with all block names from multiple drawings? :idea:
As result:

colum              |        block name
------------------------------------
.dwg name       |        ..
                       |        ..
                       |        ..
.dwg name       |        ..
                       |        ..
                       |        ..

dexus

  • Bull Frog
  • Posts: 207
You can start here, this might help:

Write to excel (csv): http://www.lee-mac.com/writecsv.html

Execute on multiple drawings: https://www.cad-notes.com/run-a-script-on-multiple-dwg-with-scriptpro/

BIGAL

  • Swamp Rat
  • Posts: 1411
  • 40 + years of using Autocad
My approach I write direct to excel, open a excel file and fill in 1st dwg block details. When you open next dwg get last cell address and then fill in details, keep repeating.

The write to a csv may be easier the only difference is to use "A" not "W" when you open file this will append to an existing file.

I would look into accoreconsole to process a lot of dwg's else just a script open a dwg, run a lisp, then close.

A man who never made a mistake never made anything

Lee Mac

  • Seagull
  • Posts: 12914
  • London, England
Re: How to generate an excel list with all block names from multiple drawings?
« Reply #3 on: February 01, 2023, 08:30:25 AM »
Have you considered using DATAEXTRACTION for this task?