Get Component coordinate in Assembly

Hi All,
I’m trying to get component position respected to assembly coordinate system. Let say in following image need to calculate P1, P2… point.

Complete Work: Already calculate the center of mass for each component.
For corner point used 1.GetBodyBox 2.GetExtremePoint methods. All this method retune part level coordinate instead of assembly coordinate.

Thanks & Have a nice day.

Regards
Vijay

Please read this article: Usage of assembly component transformation in SOLIDWORKS API

3 Likes