Get material properties of the bodies in assembly

Hi,

I am trying to write a C# code to open solidworks assembly file. List all the parts, and for each part, get all the bodies, and read the material information for each body, then save all these body material information into a txt file.

I am new to Solidworks API, but I am very familiar with C#. I browsed through the API, I wonder whether the DocumentManager class can do this job?

Another question, for the same assembly file, there will be SAT file exported. I wonder in the SAT file, how is the order of the bodies arranged? I wish the order of the bodies I get from my code above to be the same order as the bodies in the SAT file.

Thanks for any suggestion.

chen

SolidworksApi macros