I need a write a standalone C# app to open a .SLDASM file, read the full indented BOM, and close it, preferably without needing to open the file in Solidworks. Can this be done using the document manager API, or is it best to use the standard SW api? Is there any example code to do this? From looking at the SW API, it looks as if I may be able to use the IAssemblyDoc method to return a collection of IComponent2's, but I'm just guessing at this point.
Thanks,
Randy
SolidworksApi macros