Associate electrical component using macro

Hi all,

I would like to know if there is a way to associate electrical component in electrical manager with component in the assembly by using macro. I want to reused my assembly from other project without rearranging the component again and again. Please do let me know if you guys have any knowledge of this issue.

Thank you.

SolidworksApi macros