When using for example the ConvertTo FlushConstraint within the API (Example Below) the function will change the constraint that it's using to convert to the new constraint type and then rename it to a new "Flush:#" or "Mate:##" number instead of using the name of the constraint that is being used. In my work, we commonly use custom constraint names in our automation.
Video to demonstrate the change of the names in the tree.
Dim oCon As AssemblyConstraint
For Each oCon In oAssyDef.Constraints
If oCon.Type = kMateConstraintObject Then
Select oCon.Name
Case "PLA 01 ELEV", "PLA 01 IN"
If strHand = "RH" Then
oCon.ConvertToFlushConstraint(oCon.EntityOne, oCon.EntityTwo, "0")
Else
oCon.ConvertToMateConstraint(oCon.EntityOne, oCon.EntityTwo, "0")
End If
End Select
End If
Next
What I would ask is when using these methods that you have an option to either keep the name or to use the name. This way you do not have to rename the constraint that you are trying to change the type of.
The main methods that I would like to see changed are but I could see all of them needing this functionality.