This utility can be used to create an csv formatted BOM file for the current active sheet. Only the active sheet is included. There is an other document for creating the whole hierarchy BOM.
Untar the enclosed file.
//Warning! This is an unsupported script and should be used with caution !!!.
//v 1.0: Mentor Graphics Finland / Timo Kyyronen 10.10.2011
//Create a directory like /tmp/bom_ample. In reality use your custom location.
//Place tky_sheet_bom.pl in there.
//Create /tmp/bom_ample/des_arch, place this ample /tmp/bom_ample/des_arch/schematic.ample and setup AMPLE_PATH=/tmp/bom_ample
//Call function tky_example_active_sheet_bom() from active schematic sheet.