You're making it too complex...
pt0=[0,0,0]
pt1=[1,0,0]
Sketchup.active_model.active_entities.add_line(pt0,pt1)
Adds a new line from the origin 1" long, to the right [i.e. X/red axis]
The entities.add_... methods are listed in the API guides and cover many aspects of adding lines, arcs, circles, polygons, clines, cpoints, faces, text etc... please read them and have a mess around...