Error Executing Macro

Staff,

   I'm trying to run a macro in solidworks 2010 road but when it generates error saying it can not start because the type sldworks there and it does not contain a definition for Swapper.
  If any can help me, the code is attached.

Regards,
Josano

SolidworksApi macros