RobotStudio event

AutoPath from curve in C#

Hi everybody,
I'm trying to use Autopath function in my Addin. 
I've followed the example to make path from clicked target, but I don't know where i can find the path from curve function?

Does anyone know how to do that?

Thank you in advance,

David