SolidWorks API - In an assembly, how to retrieve ItemNumber and Quantity

Hi all

In an assembly, I want to retrieve, line by row, the value of the ItemNumber and Quantity columns from the BOM , but I don't have to display it.

Does anyone have any idea how to go about it?

 

Thank you in advance for your feedback.