Sorry sudhakarn, I wasn't clear enough.
I need the automation code to get the origin of the sketch.
I know I can get it with doublé click on the pocket but I am developing a Little application to make other operations on the part and I need to get this information in order to continue.
Thank you again.
Regards