Make independent and rotate through API - can someone help me?

Hello, everybody.

  Can someone help me in this issue:

   How can I make independent a part in a routing assembly, and rotate to fix it ? Please, see the attached image to fully understand my problem. The zip file are the solidworks files.

Thanks in advance,

Bruno Neves Pires Silva.

SolidworksApi macros