A legend lists the styles in your map.
To add legend to a paper space layout
Every map file has a default display map. If you do not create other display maps, the legend will be added to the default.
To use an external table style, click Browse For External Style and navigate to the XML file containing the style. You can create table styles using the AutoCAD TABLESTYLE command.
The legend can be inside or outside the viewport itself.