draw_polyline
Draw a polyline on the drawing.
autocad_request("draw_polyline", int iCoordTableDesct);
Here iCoordTableDescr is the identifier number of the table with coordinates (descriptor).
Coordinate table format:
double x, double y, double b
Here x,y are the coordinates of the point, b is the bulge (for lines - 0).
Example.
Draw a polyline square with a side of 1 m - (0; 0), (1; 0), (1; 1), (0.1), (0; 0).
int iTable;
object("create","ts_table",iTable);
ts_table(iTable,"add_column",0,"double","x",0);
ts_table(iTable,"add_column",1,"double","y",0);
ts_table(iTable,"add_column",2,"double","b",0);
ts_table(iTable,"add_row","x",0,"y",0,"b",0);
ts_table(iTable,"add_row","x",1,"y",0,"b",0);
ts_table(iTable,"add_row","x",1",y",1,"b",0);
ts_table(iTable,"add_row","x",0,"y",1,"b",0);
ts_table(iTable,"add_row","x",0,"y",0,"b",0);
autocad_request("draw_polyline", iTable);
object("delete",iTable);