I am trying to set up a system that exports a BOM to excel once the Top Assembly is selected.
The system works fine but I want to export only the top level BOM, but I am only able to export the complete BOM with all the sub-assemblies and sub-parts
I've tried to use swUserPrefernece Toggle_e, but it doesn't work.
BOMView = File.GetComputedBOM("SPS BOM", 0, "Default", swUserPreferenceToggle_e.swOneConfigOnlyTopLevelBom)
Any help would be greatly appreciated!