eplisp

Attribute Export-Import (ATOUT, ATIN)

eplisp, the free multilingual LISP library

Attribute Export-Import (ATOUT, ATIN)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsATHELPATOUTATOUT-ALLATOUT-NAMEATOUT-SELECTATINATIN-ALLATIN-NAMEATIN-SELECTATPORTATPORT-WITHATPORT-SETATPORT-RESET-SETTINGSATPORT-RELEASE-APPSATPORT-RELEASE-APPS-FORCE
CategoryData Export (Excel, CSV)
AuthorGitHubUser5376
SourceGitHubUser5376/AttributeImportExport
LicenseUnlicense
RequirementsAutoCAD for Windows (full version; not LT); the code also refers to DraftSight. Microsoft Excel is needed only for the Excel option.
Prompt languageEnglish
FilesAttribute Export-Import.lsp (74 KB)
Added2026-10-26
Download the original fileSource repository

Exports block attributes to a CSV or tab-delimited file, optionally opened in Excel, and imports the edited values back into the same blocks by handle.

Attribute Export-Import by GitHubUser5376 (the code names Garrett Beck as the person who modified one of its routines) is a free alternative to the Express Tools ATTOUT and ATTIN commands. It is aimed at title blocks, equipment tags and room data that are easier to edit in a spreadsheet than one block at a time.

Overview

ATOUT writes one row per block: the block handle prefixed with BLKID- (so Excel does not turn it into a number), the block name, the X, Y and Z insertion coordinates, then one column per attribute tag. Attributes a block does not have are written as <>. The -ALL, -NAME and -SELECT variants take all attributed blocks, the blocks of one name, or a selection. The output type is set with ATPORT-WITH: csv, txt (tab-delimited) or Excel, which saves a CSV and opens it in Excel.

ATIN reads such a file and updates every block whose handle and name match a row. It reports how many blocks were updated and writes a log CSV listing blocks or attributes that were missing on either side. ATHELP lists all commands, and ATPORT-SET changes which variant plain ATIN and ATOUT run by default.

How to use it

  1. Load 'Attribute Export-Import.lsp' with APPLOAD; on first load it creates its settings file.
  2. Optionally type ATPORT-WITH and choose csv, Excel or txt as the export format (Excel is the default).
  3. Type ATOUT-SELECT, ATOUT-NAME or ATOUT-ALL, choose the blocks and save the file in the dialog.
  4. Edit the attribute values in Excel or a text editor; keep the handle and block name columns unchanged and save as CSV or tab-delimited text.
  5. Type ATIN-ALL, ATIN-NAME or ATIN-SELECT and open the edited file to update the blocks.
  6. Read the summary on the command line and, if it reports problems, the log file it names.

Notes and limitations

  • Windows only: it relies on the %AppData% and %LocalAppData% folders.
  • Creates %AppData%\CadAddins\AT-Import-Export-Defaults.txt for its settings and writes import logs (CADAttInLog - *.csv) and an error log to %LocalAppData%\Temp. Every time the file is loaded it deletes its own import logs older than about two days from that folder.
  • In Excel mode it starts or connects to Excel through COM automation.
  • Blocks are matched by handle, so a file exported from one drawing only updates that same drawing; copied or re-inserted blocks get new handles.
  • One helper that parses the CSV file is credited in the code to a post by Cooper Francis on the Autodesk forums, modified by Garrett Beck; the repository releases the file under the Unlicense.
  • In the code ATPORT-RELEASE-APPS is defined with a required argument, so typing it (or ATPORT-RELEASE-APPS-FORCE, which calls it) as a command may end with a 'too few arguments' error.

Source and license

This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.

References

  1. Source repository: GitHubUser5376/AttributeImportExport – https://github.com/GitHubUser5376/AttributeImportExport/tree/8596a1a96281c0d7d249e8b8d47826a1af09c12b
  2. Author: GitHubUser5376 – https://github.com/GitHubUser5376
  3. License: Unlicense – https://github.com/GitHubUser5376/AttributeImportExport/blob/8596a1a96281c0d7d249e8b8d47826a1af09c12b/LICENSE

Found a mistake, or are you the author of this tool? Request a correction or removal