Is GetName in ISketchSegment concatenated from GetID and corresponding type

Is GetName in ISketchSegment concatenated from GetID and corresponding type, for example
“Line1” = GetName()
1 = GetID()
= >
“Line1” = “Line” + 1

No, the ID consists of two numbers. See:
https://help.solidworks.com/2018/english/api/sldworksapi/SolidWorks.Interop.sldworks~SolidWorks.Interop.sldworks.ISketchSegment~GetID.html

You can set the name of most objects, but not for sketch segments. But you should generally not rely on an object’s name in solidworks. It’s better to use its ID or Persistent ID.