This TML will extract the materials assigned to a surface and create a legend. There are two styles of legends. (Examples shown below)
NOTE: This macro requires TBC version 5.0 (patch 1 - Released 1/18)
The TML allows the user to assign the text styles used for each part of the legend.
If any line or text from an existing legend is selected when the TML is started, the macro assumes that the user wants to edit the existing legend instead of creating a new legend.
If the "Include Material Layers" option is checked,


If the "Include Material Layers" option is not checked, the legend will look like this;

