The net could be selected in the Navigator, then you could use hsmGetSelectedSet() to obtain the net name and work from that point.
So let's assume my net of interest is net51...
cv = geGetEditCellView()
netId = dbFindNetByName(cv "net51")
pathsOrSegs= setof(obj netId~>figs member(obj~>objType list("pathSeg" "path")))
=> (db:0x1d075e27 db:0x1d075e28 db:0x1d075e26 db:0x1d075e25 db:0x1d075e20
abs(car(setof(val rodSubPoints(object~>beginPt object~>endPt) abs(val)>0.0)))
); when it is a pathSeg
;; prints the following:
A path would need to be treated differently to a pathSeg (because it does not have "beginPt" and "endPt" attributes), but hopefully you get the idea from the above example. I wrote CCSgetPathLength for paths...
Hopefully this is close to what you were looking for?