Set Axis Reference Entities API

Does anyone have an example of code of selecting an Axis and setting its reference entities?

For a simple example:  I want to select Axis1 and set its reference entities to the Front plane and Right plane. 

Thanks, Eric

SolidworksApi/macros