Get name of sketchsegment

Is there any direct way to get the name of a sketchsegment, such as Line1, Arc8, Ellipse1, etc. or do I have to write my own function using ISketchSegment.GetID and GetType along with swSkethSegments_e?

SolidworksApi macros