help me with solidworks api

Hy, i record a macro of one standar operation, like extrude or extrude cut, but when the macro run the sketches are in other plane that i was set.

im beginner in macros one of you can help me!

SolidworksApi macros