Recording macro values to global variables

Does anyone know if it is possible to change global properties in a part or assembly with a macro? I am trying to have users input a few values and use those to build the model. SolidworksApi macros