I apologize, but I thought that I was trying to simplify my problem, but all I was really doing was asking it again. I am looking to have either a vertical or horizontal line from one edge to the other, but I do not know how to create the loop(s) and how to determine which is the "best" to create the vertical or horizontal line. Could someone help me by maybe pointing me to some code that will help me set up these loops. I would like to start with the largest x or y, and then on the next iteration, use the second largest x or y. I do not know how to accomplish this.