COG for the assembled ccordinates

In assembly jobs,i need to extract the weight,COG and COG point coordinates of each individual components with respect to main assembly Absolute coordinate system.And it should be exported as notepad file.So that i will import it in the excel
file.Thanks in advance

Please refer to:
http://www.eng-tips.com/viewthread.cfm?qid=342629

it has some code that will give you a starting point. Post back with any questions you may have.