How could be a macro created in SW-2007 run in SW-2010?

Hello everybody,

   I am familiar with macro and how we can create that, and with this brief introduction I would like to explain my problem as below?

I am running a macro  which was created in SolidWorks 2007 (with the related part and assembly and drawing) and for running in SolidWorks 2010, I see it cannot find project or library ( as a compiler error) and the missing project or library are listed below:

1- MISSING: SolidWorks 2007 commands type library.

2- MISSING: SolidWorks 2007 Routing type library.

  Now my question is how can I updated my Macro to SolidWorks 2010 or the Macro will be working without requiring to install SolidWorks 2007?

Thanks in advance for any recommendation

Dariush

SolidworksApi macros