This is an improved version of the ExtractBOM script that has proper column layout. It also uses inbuilt Python functions that the original script re-invented for some reason.
See How to install sample Add-Ins and Scripts
Samples are licensed under the terms of the MIT License. Please see the LICENSE file for full details.