Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross 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
Oct 15, 2009
154
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
 
Replies continue below

Recommended for you

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