PDA

View Full Version : Draw lines between two known points from a data table


noadea
2007-03-21, 05:27 AM
Hello everyone... I've a problem to draw lines between two lines. It can be one, two or three lines between two lines depend on data list. Data value in column A connect to data value in column B by row. As example A1 connect to B1, A2 to B2, A3 to B3...
A1 B1
A2 B2
A3 B3
A4 -
A5 -
A6 B6
.
.

But got data in column B with no value. So I only know the start point which is in column A. Refer to data example, how to read the data list so that i can draw the lines (A4 and A5 to unknown point) but in between the two lines (A3 to B3 and A6 to B6)? Thank in advance.

kennet.sjoberg
2007-03-21, 08:43 AM
. . .how . . . can draw . . . to unknown point ?
I do not know, use 0,0 ?
or when B is emty skip A and go to next line

: ) Happy Computing !

kennet

noadea
2007-03-21, 08:47 AM
Can you give an example of lisp routine that can skip the thing when equal to something?

tany0070
2007-03-21, 10:08 AM
hi maybe you can post a picture or two about what you are aiming for. i do not fully understand what you really want.

noadea
2007-03-21, 11:46 AM
Got an idea to draw imaginary line from B3 to B6 then divide total of "-" value plus 1. If refer to previous data example it should be divided by 3 because total of "-" value is 2. But dont know how to write the lisp that can go back to the previous item after counting the "-" item.

abdulhuck
2007-03-21, 12:26 PM
Got an idea to draw imaginary line from B3 to B6 then divide total of "-" value plus 1. If refer to previous data example it should be divided by 3 because total of "-" value is 2. But dont know how to write the lisp that can go back to the previous item after counting the "-" item.
Please tell us where do you get the data from. Is it from some file (text, excel etc)? Post a sample data, not a1 a2 a3 etc. Please explain your goal, because somebody will have a better idea to meet it. If you post the completed drawing, it will give a more clear picture.

Regards,

Abdul Huck

noadea
2007-03-21, 02:07 PM
These are example of dwg and csv file. The orange lines can be drawn by read the data from csv file. The problem here is I dont know how to draw line from square number 2, 3, 10 and 11 to the dashed line. The line from square number 2 and 3 must be in between the line from square 1 to circle 1 and square 4 to circle 3 without cross each other. Same with the line from square 10 and 11 to the dashed line.

noadea
2007-03-28, 09:33 AM
Anyone can help me solve this problem? Really need your help. Thanks.