Function of a part

Does anyone know of a way to get the function of a body.

by function I mean z = x + y for example, like in calculus.

I'll be happy if there is something like this because it will be much easier for me to analyze the body.

SolidworksApi macros