AutoCAD Layer LISP: Create All Layers in One Command (Complete Guide)

How to create every AutoCAD layer with one LISP command: loading .lsp files, civil layer naming (NCS), ACI colors, lineweights, troubleshooting and FAQs, plus a free generator.

Spread the Knowledge, Share the Love ❤️

Creating 15–20 layers by hand in every new AutoCAD drawing is slow and never quite consistent. An AutoCAD layer LISP solves this: one small .lsp file that creates every layer, with its color, linetype, lineweight and plot setting, the moment you type one command. This guide explains how it works, how to load it, and which layer names, colors and lineweights to use for civil and structural drawings.

Make your layer LISP in 30 seconds
Free AutoCAD Layer LISP Generator: civil, structural, road, survey and MEP presets. No signup.
Open the free tool →

What does an AutoCAD layer LISP do?

A layer LISP is an AutoLISP (.lsp) file that creates all of your AutoCAD layers in one command, with the correct name, ACI color, linetype, lineweight, plot setting and description for each. You set up your layer standard once in our free AutoCAD Layer LISP Generator, download the file, and every new drawing gets the same layers in about a second. No more building them one by one in the Layer Properties Manager.

The script made by our generator is written to be safe on real project drawings:

  • It never breaks on existing layers. You choose whether existing layers are updated to your standard or left alone, and a layer that is switched off stays off.
  • It loads linetypes only when needed. It reads acadiso.lin for metric drawings and acad.lin for imperial ones, so AutoCAD never stops to ask “Reload linetype?” in the middle of the script.
  • One undo step. Everything is wrapped in an undo group, so typing U once reverses the whole run.
  • It works in any language version of AutoCAD. The commands use the international _ prefix, so non-English AutoCAD builds work too.
  • It leaves your drawing as it was. CMDECHO is restored afterwards, even if you press Esc.

How to load and run a LISP file in AutoCAD

  1. Open the Layer LISP Generator, pick a preset or enter your layers, click Download and save the .lsp file, for example in a folder called D:\CAD\LISP.
  2. In AutoCAD, type APPLOAD and press Enter.
  3. Browse to the file, select it and click Load, then Close. You can also just drag the .lsp file from Windows Explorer into the drawing area.
  4. Type the command name (default CreateLayers) and press Enter.
  5. The command line reports how many layers were created, updated or skipped. Open LAYER to see them.

To load it in every drawing automatically: in the APPLOAD dialog, click Contents under Startup Suite and add the file. For a quicker option, tick “Run automatically as soon as the file is loaded” under Script options in the generator before you download, so loading the file also creates the layers.

Security warning when loading? AutoCAD 2014 and later warn about LISP files loaded from outside a trusted location. Choose Load Once, or add your LISP folder under Options → Files → Trusted Locations so the warning stops appearing.

Recommended layer names for civil engineering drawings

The presets in our generator follow the pattern of the US National CAD Standard (NCS/AIA): a discipline letter, a four-letter major group and optional minor groups, e.g. S-BEAM, S-SLAB-OPNG, C-ROAD-CNTR. The discipline letters used are S structural, A architectural, C civil, V survey, P plumbing, M mechanical, E electrical, F fire protection and G general. If your office uses plain names like BEAM and COLUMN, choose the Basic civil preset instead. What matters most is being consistent across the whole project.

LayerColor (ACI)LinetypeLineweightUsed for
S-GRID1 RedCENTER0.13 mmStructural grid lines
S-COLS3 GreenContinuous0.70 mmColumns (cut in plan)
S-BEAM6 MagentaContinuous0.50 mmBeams
S-SLAB5 BlueContinuous0.35 mmSlab edges
S-FNDN30 OrangeHIDDEN0.50 mmFootings below ground
S-WALL7 White/BlackContinuous0.50 mmRCC / shear walls
S-RBAR40Continuous0.30 mmReinforcement bars
S-ANNO-DIMS2 YellowContinuous0.13 mmDimensions
S-ANNO-TEXT7 White/BlackContinuous0.18 mmNotes and text
S-ANNO-NPLT211ContinuousDefaultViewports and construction lines (not plotted)

For a full explanation of layer structure, colors and naming, read our guide AutoCAD Layers Explained: Civil Engineering Layer Setup & Naming.

AutoCAD color numbers (ACI) quick reference

AutoCAD’s Color Index has 255 colors. Numbers 1–7 are the standard colors, 8 and 9 are grays, 10–249 are hue/shade combinations (the tens digit sets the hue, the last digit sets the shade), and 250–255 are six grays. Color 7 shows white on a dark background and black on a white one, which is why it’s the usual choice for walls and text. The color picker in the Layer LISP Generator shows the exact AutoCAD RGB value of every number.

ACIColorRGBACIColorRGB
1Red255,0,030Orange255,127,0
2Yellow255,255,040Amber255,191,0
3Green0,255,0140Sky blue0,191,255
4Cyan0,255,255150Azure0,127,255
5Blue0,0,255200Violet191,0,255
6Magenta255,0,255250Dark gray51,51,51
7White / Black255,255,255252Gray105,105,105
8Dark gray128,128,128254Light gray190,190,190
9Light gray192,192,192255White255,255,255
Use these layers in your drawings
The structural preset in the generator already has all the layers above. Load it and download the .lsp file.
Generate my LISP →

Which lineweight should each layer use?

AutoCAD lineweights go from 0.00 mm to 2.11 mm, and the default is 0.25 mm. A good drawing uses clear contrast: thick lines for what is cut, medium lines for what is seen, and thin lines for annotation. A practical scale for structural and civil sheets:

  • 0.70 mm: columns and walls cut in plan, section outlines
  • 0.50 mm: beams, RCC walls, footing outlines
  • 0.35 mm: slab edges, road edges, building outlines
  • 0.25 mm: doors, windows, hidden lines, services
  • 0.13–0.18 mm: grids, dimensions, text, contours
  • 0.09 mm: hatch patterns

Lineweights only show on screen when lineweight display is on. Type LWDISPLAY and set it to 1, or click the Show/Hide Lineweight button on the status bar.

Troubleshooting

“Unknown command CREATELAYERS”

The file isn’t loaded in this drawing. Load it again with APPLOAD (LISP files load per drawing unless they’re in the Startup Suite). If you changed the command name under Script options, type that name instead. AutoCAD LT only supports LISP from version 2024 onwards.

“Linetype … not found, layer uses Continuous”

That linetype isn’t in your .lin file. This usually happens with a custom company linetype. Load it once with the LINETYPE command and run the script again. The layer is updated to the right linetype.

Dashed lines look solid

The layer is correct, but the linetype scale doesn’t suit your drawing units. For metric (mm) drawings, set LTSCALE to roughly your plot scale (e.g. 100 for 1:100), or use PSLTSCALE and MSLTSCALE for annotative scaling in layouts.

Frequently asked questions

Is the AutoCAD Layer LISP Generator free?

Yes. It’s completely free, with no signup and no watermark in the code. The tool runs entirely in your browser and your layer list is never uploaded. It’s saved only on your own device, so it’s there next time you visit.

Does it work in AutoCAD LT, BricsCAD and ZWCAD?

It works in full AutoCAD 2000 and later, AutoCAD LT 2024 and later (the first LT versions with AutoLISP), BricsCAD Lite/Pro, ZWCAD and GstarCAD. Layer descriptions need Visual LISP. Where that isn’t available, descriptions are skipped quietly and everything else is still created.

Will it change or delete my existing layers?

It never deletes or renames anything. If a layer with the same name already exists, the script either updates its color, linetype, lineweight and plot setting to match your list, or skips it, depending on the option you choose. Objects on the layer are not touched, and one U undoes the whole run.

Can I import my layer list from Excel?

Yes. In the generator, open Import / export CSV, paste rows copied from Excel (columns: name, color, linetype, lineweight, plot, description) and click Add to list or Replace list. Color accepts numbers or names like red, and lineweight accepts values like 0.25, 0.25mm or 25. Download CSV exports your current list back to Excel.

What characters can’t be used in AutoCAD layer names?

Layer names can be up to 255 characters and may include letters, numbers, spaces, hyphens, underscores and dollar signs. These characters are not allowed: < > / \ " : ; ? * | , = `. The generator removes them automatically as you type.

Can I use a template (DWT) instead of a LISP?

Yes, and the two work well together. Run the script once in a blank drawing and save it as a .dwt template, so new drawings start with every layer. Keep the LISP for existing drawings from consultants or older projects, where it brings the layers up to your standard in one step.

Keep learning AutoCAD

Ready to set up your layers?
Choose a preset, adjust colors and lineweights, and download a tested .lsp file.
Open the Layer LISP Generator →
Stop calculating by hand — go Pro

Unlock an ad-free experience plus a growing library of ready-to-use civil-engineering calculators, IS-code cheat-sheets and formula PDFs. From just ₹99.

Go Pro →

Discover more from The Civil Studies

Subscribe now to keep reading and get access to the full archive.

Continue reading