Draw a line in AutoCAD.

Call:

ires = autocad_drawline( double x1, double y1, double x2, double y2);


Here:

x1, y1, x2, y2 - positions of two points of the line.