Add a new line with begin point, or add to an existing line
Returns an unused (new) line_id
Return last used id
See Implementation