How to automatically replace numerous parts after identifying their names via API ?

Hi everybody,

After using CircuitWorks, I have an assembly (Assemblage1.SLDASM) made of several parts coming from a folder named "Components".
In another hand, I have a folder named "Database" in which other parts are present. 
 

Do you know if an API exists which could :

  • Identify the parts, coming from Components, in Assemblage1.SLDASM and replace them by those present in Database ?
  • In the two folders, parts are almost the same names

 

Thank you in advance,

 

Gwen.