You can either use rodCreatePath (non GUI approach) rather than leCreatePath and use the connectivity
arguments of it.
Or you have to probably assign a pin to your path and use the following db commands:
netId = dbCreateNet( cvId name )
termId = dbCreateTerm( netId name direction )
pinId = dbCreatePin( netId figureId name )
Where figure Id can be your path or an extra shape e.g. a rectangle on your path.