yeah...what i meant was if i could generate a path in a similar way with the line segment tool, where you input the starting point, an angle an a length. i thought maybe adobe made a build-in method to do this. seems not, but it's quite easy to do it manually. it's something like this:
let's say x and y are the coordinates of the starting point, then:
first anchorpoint [x,y]
second anchorpoint [ x+cos(angle_in_radians)*length_in_points , y+sin(angle_in_radians)*length_in_points]