It is included in the "Drawing Tree" and "A>V>C> Properties Palette" plugins, as well as the "AVC Pro" suite and other plugin collections.
AErase is a command for deleting selected objects from the current drawing. It combines standard object deletion with the cleanup of dependent records and references: for instance, when deleting a layer, material, or block definition, the command may first modify any associated objects. This command is primarily designed to be invoked from the Drawing Tree and A>V>C> Properties Palette.
Deletes graphical objects (drawing primitives), including those located within blocks or across multiple layouts simultaneously.
Deletes selection groups without removing the objects contained within them.
Deletes block definitions along with all their inserted instances.
Deletes layers and materials, automatically reassigning them in any dependent objects.
Deletes layouts and custom layer filters.
Supports selection both directly within the drawing and via the Drawing Tree (DwgTree).
Provides a summary of the number of objects deleted or modified, as well as any items that could not be deleted.
The command is not provided as a standalone plugin; it is available only as part of other plugins or within complete collections.
There is no button for the AErase command in menus, toolbars, or ribbons. It can only be invoked via the command line, the Drawing Tree, or A>V>C> Properties Palette.
The program requires objects to be selected beforehand. If nothing is selected, the command will perform no action.
You can select objects directly in the drawing or by checking boxes in the Drawing Tree (DwgTree). Additionally, the command icon can be found in the header of the Block, Layer, and Material tabs within the A>V>C> Properties Palette.
In the DwgTree, check the nodes for the desired objects or category. You can disable the tree's auto-collapse feature to select objects located within multiple different blocks or across several layouts.
Right-click on any selected node. You can also access the menu from an unchecked node; doing so will automatically select it.
Locate the "Erase" command in the menu. If it is missing, it means one of the selected objects cannot be deleted (for example, "Layer 0," the "Global" material, or the only remaining layout in the drawing).
When deleting layers, materials, or block definitions, the program will request confirmation, as such operations may alter or remove a large number of associated objects. For other types of objects, no separate confirmation prompt is provided—please proceed with caution.
Once processing is complete, the program will clear the selection and display the results in the command line.
If no objects are selected—either in the drawing or within the DwgTree—the program will notify you that there is nothing to delete.
Searching for and modifying all dependent objects throughout the entire drawing may be time-consuming; a progress bar will be displayed. You can interrupt the process at any time by pressing the ESC key.
All deleted objects can be restored using the _Undo command (Ctrl+Z).
Graphical object (Entity) – Deletes the object itself. This applies to both pre-selected objects and valid objects passed from the DwgTree, including those located outside the current space.
Layer – Moves all graphical objects associated with the layer to layer "0" and sets the current layer to "0" if the layer being deleted was the current one. It then attempts to delete the layer itself. System layers (such as "0" and "Defpoints"), hidden layers, and layers belonging to external references (xrefs) cannot be deleted.
Block definition – Deletes all instances of the block, including those nested within other blocks. For dynamic blocks, it also processes anonymous definitions (instances) and their occurrences before deleting the block definition. Model/layout spaces, sheet blocks, external references, anonymous blocks, and other special block types cannot be deleted.
Material – Replaces the material assigned to all objects and layers with "Global." It also removes material assignments from the faces of 3D solids if they reference the material being deleted. The material is then removed. System materials such as "Global," "ByLayer," and "ByBlock" cannot be deleted.
Layout – Deletes the selected layout. It is not possible to delete all layouts in a drawing; at least one must remain.
Group – Deletes the group definition. Objects that were part of the group are ungrouped but remain in the drawing; in other words, there is no visible change to the drawing.
Layer filter – Removes the selected user-defined filter from the filter tree in the Layers panel. The layers themselves are not deleted.