I'm trying to save a csv of a PDM BOM using the SaveToCSV() method in C#.
I select the config using this code:
bomView = (IEdmBomView3)aFile.GetComputedBOM(ppoRetLayout.mbsLayoutName, 0, Config, asBuiltId + (int)EdmBomFlag.EdmBf_ShowSelected);
Let's say in this case the Config name is "Config1".
I then save this bomView to csv.
bomView.SaveToCSV("c:\\temp\\SavedBOM.csv", false);
As far as I can tell, this creates a BOM from the default config, not the "config1" config.
The only difference is the "config1" has a pattern of several of the assemblies.
Clicking the "Save CSV" from within the vault in windows explorer creates a CSV with the expected values.
The SaveToCSV() method creates a file with only one of the assembly.
Is this a bug in PDM? I would hope the CSV generated from the file browser interface would make one from a program API call, but this appears to not be the case.
Corey,
So If I understand you correctly, the issue is related the configuration parameter in GetComputedBOM ?
Can you provide us with a minimal viable example (code + CAD files) so we can try to replicate this issue on our ends?
Best,
Amen
SOLIDWORKS PDM API Programming services