I expect Courtois wants the kind of BOM functionality that you find in the MCAD packages like SolidWorks/Inventor/SolidEdge etc.
I would certainly like this kind of functionality too, trying to put together a list of parts for the piping in a power plant right now and doing it manually is excruciating
You may get some milage out of this thread where Mary shared a Python script:
Haven’t had the opportunity to try it out myself yet, but it might be worth a shot