How to get line start/end without casting it into curve?

A post was split to a new topic: Is there an rs.createbrep function now?