Call options
- ModPlus menu
- ModPlus palette
- AutoCAD ribbon
- Command line: _mpLayerAuto
Icon
Related news and articles
Using
The upper part of the plugin window contains three switches that enable or disable modes for assigning layers in the current document – by primitive type, by block name, and by command name.
Below are settings divided into two groups – layer assignment and command settings for exclusion. Layer assignment is further divided into layers for primitives, layers for blocks by name, and layers for commands by name.
All settings are saved globally and applied to all drawings.

This group contains layer settings for primitives based on their type. The lists are filled with layer names available in the current drawing. When selecting "Default layer", the object will be assigned the layer set as default in the drawing. If the assigned layer is later deleted from the drawing, the object will be assigned the default layer.
If the plugin is launched in a drawing where there are no layers saved in the settings, the layer in the dropdown list will be displayed in red.
Layers for revision clouds are available starting from AutoCAD version 2021.

This group contains a list of rules for assigning layers to blocks depending on block names.
Note: layer assignment for a block by name has higher priority than layer assignment for the primitive type "Block".
For each rule, you must specify the matching condition – exact match or partial match (block name contains the specified value). Case is ignored. The layer can be selected from the dropdown list filled with layers of the current drawing or entered manually.
– add a new rule.
– delete the selected rule.
– export rules to an XML file.
– import rules from an XML file. All current rules will be removed.

This group contains rules for assigning layers to commands based on their global names. The global command name can be obtained by entering the following expression in the command line: (getcname "COMMAND NAME").
Note: layer assignment for a command by name has higher priority than settings for blocks by name and primitives by type.
For each rule, specify the matching condition – exact or partial match (command name contains the specified value). Case is ignored. The layer can be selected from the dropdown list or entered manually.
– add a new rule.
– delete the selected rule.
– export rules to an XML file.
– import rules from an XML file. All current rules will be removed.

On this tab, you can edit (add or remove) the list of commands to be excluded from processing by the plugin.
The standard set of commands for exclusion is not editable!
Save – save all settings and close the window.
Replace throughout the document – apply the specified layer settings to all primitives in the document.
Apply to selected – apply all specified layer settings to selected entities.