C# CreateLine from origin to an entity edge?

Hi

Is it possible to create a line from origin to an entity edge using this code swDoc.SketchManager.CreateLine()?

Like this

SolidworksApi macros