InsertCutSurface is not working

Hi!
I am a total newbie to API, and trying to learn it. I have recorded a macro to cut a part using two parallel reference planes, and when I am trying to replay it, the InsertCutSurface command is not performing anything. Using F8 I can see that the planes are being created and selected, but no change is taking place in the line "Part.InsertCutSurface False, 0". I can attach the code, if required. Any help will be appreciated.

Edit:

Actually there was some syntax mistake in my code, which I was missing. Now it is resolved.

SolidworksApi macros