Attribute Export-Import (ATOUT, ATIN)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | ATHELPATOUTATOUT-ALLATOUT-NAMEATOUT-SELECTATINATIN-ALLATIN-NAMEATIN-SELECTATPORTATPORT-WITHATPORT-SETATPORT-RESET-SETTINGSATPORT-RELEASE-APPSATPORT-RELEASE-APPS-FORCE |
|---|---|
| Category | Data Export (Excel, CSV) |
| Author | GitHubUser5376 |
| Source | GitHubUser5376/AttributeImportExport |
| License | Unlicense |
| Requirements | AutoCAD for Windows (full version; not LT); the code also refers to DraftSight. Microsoft Excel is needed only for the Excel option. |
| Prompt language | English |
| Files | Attribute Export-Import.lsp (74 KB) |
| Added | 2026-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
- Load 'Attribute Export-Import.lsp' with APPLOAD; on first load it creates its settings file.
- Optionally type ATPORT-WITH and choose csv, Excel or txt as the export format (Excel is the default).
- Type ATOUT-SELECT, ATOUT-NAME or ATOUT-ALL, choose the blocks and save the file in the dialog.
- 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.
- Type ATIN-ALL, ATIN-NAME or ATIN-SELECT and open the edited file to update the blocks.
- 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
- Source repository: GitHubUser5376/AttributeImportExport – https://github.com/GitHubUser5376/AttributeImportExport/tree/8596a1a96281c0d7d249e8b8d47826a1af09c12b
- Author: GitHubUser5376 – https://github.com/GitHubUser5376
- 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