Use already declared variables in function

I have a function which I would like to reuse the variables I have already declared in the main macro. How do I go about accomplishing this? I've tried looking but got confused in the help file. I don't see the point of declaring new variables in the function for the values that are sent to the function call.

SolidworksApi macros