Please watch the video below on how to run a SolidWorks swp macro from within SolidWorks.
It will show you how to add a macro button to the menu bar and run a macro.
Your browser does not support the video tag.