I'm trying to get BOM view using the code above but it always returns Indented version (which I cannot tell easily from the view which items are under sub-assemblies). I need to get top-level BOM version. How do I do that?
var vault = (IEdmVault7)myPDMHelper.GetVault(vaultName);
var fileObj = (IEdmFile7)vault.GetFileFromPath(filePath, out var parentFolder);
var bomView = fileObj.GetComputedBOM("MyBOM", 0, "-01", (int)EdmBomFlag.EdmBf_AsBuilt);