Another method is in the Custom Properties of the Part create a Property (e.g. "Length") linked to the dimension you want in the BOM. To link - place the cursor in the "Value/Text Expression" column then double click on the feature and then on the dimension that you want linked.
Then in Custom Properites change the BOM Quanity to "Length".