header image

Collection of AutoLisp for Layer Management - Lisp Help

Under Layer, you can pick the text for layer name; move each text of specified layer individually. You can show layer by layer and use layer manager to accomplish other tasks.


Sl. No.



1 CRL To pick the text for Layer Name
2 MVT Move each text of specified layer individually
3 NL Show layer by layer
4 LMN Layer Manager


Menu: Pick the Text for Layer Name (CRL)

Functionality: To select and move all the texts having selected text caption into a new layer. New layer name will be same as that of the caption of text selected.

Description: Layer concept in CAD is one of the very useful features when working on a bigger drawing. Often while working with texts, if all texts with specific captions are available in a layer, then it would be convenient to handle such entities. This can be done using ‘CRL’ command. When a particular text is selected; all the texts with those same captions will be moved to a new layer with a layer name same as the text caption.

1. Type ‘CRL’ at the command prompt.
2. Pick the text for the layer: Select the text entity whose name should be given to the layer.
Layer CRL Lisp
                                             Move each Text of specified Layer individually (MVT)


Menu: Move each Text of specified Layer individually (MVT)

Functionality: To move the text entities in the selected layer one after the other to required places.

Description: In CAD application moving a set of text with the “move” command is very simple when all the text entities are to be moved with a constant distance. But in cases, where a block is overlapping with text, moving all the texts with the same distance may not give the correct result as the moved text may overlap with another entity. In such cases, you may have to move all such texts individually depending on the entities around that text. Hence the ‘MVT’ command will be helpful which saves a lot of time in locating, zooming text entities of a specific layer and helps you to move the texts individually.

1. Type ‘MVT’ at the command prompt.
2. Pick the entity for the layer: Select the text entity which is inside the layer for moving.
Layer CRL Lisp
                                           Move each Text of specified Layer individually (MVT)


Menu: Show Layer by Layer (NL)

Functionality: To show entities layer by layer.

Description: One of the easiest quality checks that you  can apply on a drawing is looking at each layer entities individually. The ‘NL’ command will show each layer one after the other by switching off all other layers. When you see each layer individually you can make out some mistakes easily. For example, if there is a line representing road in ‘Road Name’ layer, you can push that line to road layer. Use ‘NL’ command for an easy quality check. The Latest versions of AutoCAD come with the “LayWalk” command which is almost similar to ‘NL’ command. But ‘NL’ command is advantageous when compared to “LayWalk” command as it automatically jumps to next layer.

1. Type ‘NL’ at the command prompt.
2. Keep on typing NL command to view individual layers.
Layer CRL Lisp
                                                              Show Layer by Layer (NL)


Menu: Layer Manager (LMN)

Functionality: To save / restore a set of Layer Setting.

Description: When editing big drawings with multiple layers, it may not be advisable to switch ON all the layers and work. Hence a common practice is to switch OFF some layers, or freeze them or lock them while doing a specific type of drawing editing. Also, in such cases, if you change the property of few layers, it may be difficult to remember and get back to previous settings. Hence using ‘LMN’ command you can overcome this problem, i.e. when you feel it is convenient with a specific layer setting for a drawing, store it with one name and, while editing whenever you  want to restore that specific layer property combination you  can restore back the saved setting using ‘LMN’ command.

1. Type ‘LMN’ at the command prompt.
2. Layer table Restore or Save: Select R to ‘Restore’ or S to ‘Save’ layer setting.
3. [If ‘S’ option is provided] Enter the name to save settings: Provide a name to save layer setting which you can use later.
4. [When ‘R’ option is provided to restore the Layer Setting] Enter the name to restore settings: Provide a name in which layer setting is to be restored
Layer CRL Lisp
                                                      Layer Manager (LMN)