Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rename Set of Parameters

Status
Not open for further replies.

iscariot

Mechanical
Joined
Oct 15, 2009
Messages
154
Location
DE
I try to rename a set of parameters and I failed :(
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
 
I don't think you can rename the RootParamSet

regards,
LWolf
 
I search only in RootParamSet and I want to change a children of root that is a set of parameters. Manually it is possible and I think is possible also with automation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top