I try to rename a set of parameters and I failed
What I am doing wrong?
What I am doing wrong?
Code:
CATIA.StartCommand ("Clear History")
mySelection.Clear
mySelection.Add (oRootParams)
'mySelection.Search("CATKnowledgeSearch.AdvisorParameterSet.Name='Parameter_Name',all")
mySelection.Search("CATKnowledgeSearch.AdvisorParameterSet.Name='Parameters.1',sel")
For i = 1 To CATIA.ActiveDocument.Selection.Count
'On Error Resume Next
Debug.Print(CATIA.ActiveDocument.Selection.Item(i).Value.Name)
CATIA.ActiveDocument.Selection.Item(i).Value.Name = "Test_Name"
'On Error GoTo 0
Next