AutoCAD Import Text File LISP: TXT Lines into the Drawing
Imports the lines of a .txt file into the drawing as stacked single-line texts.
TXTIMPORTLoad the downloaded .lsp file with the APPLOAD command in AutoCAD or GstarCAD, then type the command name. How to load a LISP file
Download all tools in one file (138 KB)TXTIMPORT is an AutoCAD import text file LISP. Choose a .txt file and pick the start point of the first line; every line of the file is placed in the drawing as its own TEXT object, one under another at equal spacing.
Use it for general notes, specification clauses, material lists or text copied from another program, so you do not have to retype them. Edit the text in a plain text editor, then bring it onto the sheet in one go.
Blank lines in the file are not turned into text, but their space is kept, so gaps between paragraphs stay visible in the drawing. All lines are created in a single undo group.
How to use it
- Load the file with APPLOAD and type TXTIMPORT.
- Choose the .txt file in the file dialog.
- Click the start point of the first line.
- Enter the text height and line spacing, or press Enter to accept the defaults.
- Check the command line for the number of lines imported.
Notes and tips
- Only plain text (.txt) files are read; save Word or Excel content as .txt first.
- If accented or special characters come out wrong, save the file with a different encoding (for example ANSI) and try again.
- Each line becomes one single-line TEXT; long lines are not wrapped, so shorten them in the file if needed.
- Texts are created on the current layer, in the current text style, left-aligned; the default line spacing is 1.6 times the height.
Frequently asked questions
How do I import a .txt file into AutoCAD as text?
Run TXTIMPORT, choose the file and pick the start point. Each line of the file is added to the drawing as a separate text.
What happens to blank lines?
No text is created for them, but their space is skipped, so paragraph gaps in the file are kept in the drawing.
Are the lines imported as one MTEXT?
No. Each line is a separate TEXT object. If you want one paragraph, paste the text into the MTEXT editor instead.