3 Replies Latest reply on Jul 11, 2017 5:06 AM by Rafael Veiga

    Exporting a top level only BOM

    Rafael Veiga

      Hi,

       

      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!

       

      Thank you.

       

      Rafa