Hi,
You can run the below script to add such line for all layers in current project:
//Loop all layers in current project.
doc -e L
{
draw -l {-1, -1, 1, 1}; //draw a line object from the point(-1,-1) to the point (1,1) on the current layer.
};
Originlab Technical Service Team