Jegsaran
Automotive
- Dec 16, 2020
- 41
Hi Everyone,
I am trying to select a part using search, but I'm not getting the results
When I do the search manually it gives the following syntax
I am trying to select a part using search, but I'm not getting the results
Code:
Set ActDoc = CATIA.ActiveDocument
Set oSel = ActDoc.Selection
srchStrng = "AB3C-1234-J"
oSel.Search "CATProductSearch.Product.PartNumber=" & srchStrng & "*,all"
When I do the search manually it gives the following syntax
Code:
oSel.Search "CATProductSearch.Product.PartNumber=AB3C'-'1234'-'J*,all"