Tangent plane

Hi

I would like to make parrarel plane to some other plane and tangent to surface of pipe.

So, I record macro with flip offset option, because I want to have my new plane on the other side of pipe.

When I edit the macro I have different parameter depending on which side of the pipe the plane should be (see images - 32 or 288 value) - that is ok.

But when I run one more time this macro  my new plane in on the wrong side (it's look like the 288 value is ignored).

So, what could be wrong?

SolidworksApi macros