Totalling cut lengths in BOM

Wondering if anyone can help, currently we have to take time to total up all similair size material and order lengths of steel this is becoming a chore especially when time lines are tight.  Could anyone suggest or does anyone use an automated BOM that can group similair material and size together and compute a total amount for the length.  If this is possible please help!  We currenlt are using PDM software.

SolidworksBill Of Materials