ATTPFROMLST Attribute Importer
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | ATTPFROMLST |
|---|---|
| Category | Block Tools |
| Author | Thomas Gail Haws (original), Franklin Rodriguez (modifications) |
| Source | cyberec20/ATTPFROMLST_LSP |
| License | GPL-2.0-only |
| Updated | 2025-04-30 |
| Requirements | AutoCAD 2015 or later (full version; uses command-s and ActiveX). The blocks to insert must already be defined in the drawing. |
| Prompt language | English, Spanish |
| Files | ATTPFROMLST.lsp (27 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Inserts one block per line of a CSV/TXT file whose header names the fields, at X,Y(,Z), and fills in the attributes whose tags match the column names.
ATTPFROMLST is Franklin Rodriguez's extended version of the Attribute Importer routine that Thomas Gail Haws published on the AutoCAD Wiki. It is used to place objects such as poles, manholes or devices from a table into the drawing in bulk, with their positions and data.
Overview
The first non-comment line of the file holds the field names, and X and Y columns are required. Z, BLOCK (block name per row), LAYER and VISIBILITY (dynamic block visibility state) are optional; any other column is written to the attribute with the same tag. If there is no BLOCK column, the block name is asked once. The delimiter (comma by default, W for white space) and the comment-line wildcard are asked at the start.
Blocks are inserted at scale 1 and rotation 0. If there is a LAYER column, missing layers are created first and each block goes on the layer from its row. Block names not defined in the drawing are skipped with a message, and the whole import runs in one undo group.
How to use it
- Prepare a CSV file whose header is, for example, BLOCK,X,Y,LAYER,TAG1,TAG2.
- Make sure the blocks to be used are defined in the drawing.
- Load ATTPFROMLST.lsp with APPLOAD.
- Type ATTPFROMLST at the command line.
- Enter the delimiter (Enter for comma, W for white space) and the comment wildcard.
- Select the data file in the dialog.
- If the file has no BLOCK column, type the block name.
Notes and limitations
- With a LAYER column it creates missing layers and changes the current layer; after the command the current layer stays on the last row's layer.
- Quoted fields are not supported: values must not contain the delimiter (e.g. a comma).
- OSMODE, ATTREQ and CMDECHO are changed temporarily during the run, and any existing selection is cleared.
- Some messages are in Spanish.
- The license statements are inconsistent: the file header carries both a GPL v3-or-later notice (AutoCAD Wiki) and a GPL v2 notice (Haws), and the repository's LICENSE file is GPL v2. Keep both notices when redistributing.
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.
The repository's LICENSE file is GPL v2; the file header also carries a GPL v3-or-later notice from the AutoCAD Wiki.
- ATTPFROMLST.lsp (27 KB)
- License text
References
- Source repository: cyberec20/ATTPFROMLST_LSP – https://github.com/cyberec20/ATTPFROMLST_LSP/tree/031ace7967c1bd45f39d2f87a3b70a6bcb8b9aa3
- Author: Thomas Gail Haws (original), Franklin Rodriguez (modifications) – https://github.com/cyberec20
- License: GPL-2.0-only – https://github.com/cyberec20/ATTPFROMLST_LSP/blob/031ace7967c1bd45f39d2f87a3b70a6bcb8b9aa3/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal