ISegmentCollection gc = new PolylineClass(); gc.AddSegment(line as ISegment); IPolyline polyline = gc as IPolyline;