Search anywhere in PDM

Hi Guys,

I need a little help in the process of searching a part (Which is in TextBox) from anywhere in PDM for replace component in assembly

Code:

boolstatus = Part.ReplaceComponents("C:\\PDM_Vault\\PDM Structure-TEST\\SHAFT\\SHAFT1\\" & TextBox3.Text & ".SLDPRT", "", True, True)

Thanks in advance

SolidworksApi macros