GisMofx provided me this VBA code.
I use this code to remove the specified symbols from my Catia Part bodies.
Can you please help me in converting this into CATScript or Vbscript?
Dim myPart As Part
Set myPart = CATIA.ActiveDocument.Part
Dim myBody As Body
Dim newName As String
Dim newCharacter As String
newCharacter = " "
For Each myBody In myPart.Bodies 'loop through all the bodies in the part
newName = myBody.Name 'get the current body's name
newName = Replace(newName, ".", newCharacter) 'replace all "." with " "
newName = Replace(newName, "/", newCharacter) 'replace all "/" with " "
myBody.Name = newName 'rename the current body with the revised name
MsgBox "All Done!"
Did you tried to change FixPartBodyNames with CATMain ?