AnsweredAssumed Answered

Get part name and quantity

Question asked by Joel Stephens on Jan 28, 2021
Latest reply on Jan 28, 2021 by Joel Stephens

I would like to get an array that is a BOM for an assembly.  I'm looking for one element for each top level component with its name and quantity.  I've used GetDocumentDependencies2 to get an array of the file names, but that doesn't provide any quantity information. It will also append the file path as the next element if AppendImportedPaths is set to true.  Is there another way to get an array that has qty information instead? I could use it either a a 2D array with part name and qty pairs, or a 1D array where the qty is in place of the file path like with GetDocumentDependencies2.  Thanks in advance for any help!

Outcomes