PDM API Solidworks BOM PartOnly

Hello,
I'm trying to export the BOM of an assembly to CSV format in "Part only" view.

I use the method : Set bomView = file.GetComputedBOM(layout.mlLayoutID, 0, configChoisie, 0)

The layout I use exports by default to parts only.

I am specifying the export as it can be done manually because you can manually delete assemblies and duplicates but the quantities are not correct if I do that.

I guess there must be a way, since by default this method exports in "indent" format.

Thanks