getting vertex of part in assembly coordinate frame

I have created one assemly consists of 2 parts.each part have there own co-ordinate frame.for example i have created two cube.in the part frame for example one vertex is(2,3,5).once i will assembled, in the assembly same vertex may be (2,-5,8).how to get this coordinate in world coordinate....

I am also finding problem in finding the vertex of the part.now i am  getting the root component then i am getting the individual component.from there i am getting the body. then face then edge then first vertex and last vertex.then i am matching the vertex with stl file. but iam not getting the correct value.

SolidworksApi macros