Results 1 to 8 of 8

Thread: Draw lines between two known points from a data table

  1. #1
    Active Member
    Join Date
    2006-10
    Posts
    80
    Login to Give a bone
    0

    Default Draw lines between two known points from a data table

    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.
    Last edited by noadea; 2007-03-21 at 03:42 AM.

  2. #2
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    Quote Originally Posted by noadea
    . . .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

  3. #3
    Active Member
    Join Date
    2006-10
    Posts
    80
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    Can you give an example of lisp routine that can skip the thing when equal to something?

  4. #4
    100 Club
    Join Date
    2007-02
    Posts
    148
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    hi maybe you can post a picture or two about what you are aiming for. i do not fully understand what you really want.

  5. #5
    Active Member
    Join Date
    2006-10
    Posts
    80
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    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.

  6. #6
    I could stop if I wanted to
    Join Date
    2015-08
    Posts
    263
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    Quote Originally Posted by noadea
    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

  7. #7
    Active Member
    Join Date
    2006-10
    Posts
    80
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    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.
    Attached Files Attached Files

  8. #8
    Active Member
    Join Date
    2006-10
    Posts
    80
    Login to Give a bone
    0

    Default Re: Draw lines between two known points from a data table

    Anyone can help me solve this problem? Really need your help. Thanks.

Similar Threads

  1. Replies: 4
    Last Post: 2014-01-01, 07:58 PM
  2. trying to draw lines from a points list help
    By d_m_hopper in forum AutoLISP
    Replies: 7
    Last Post: 2008-04-08, 11:59 AM
  3. Replies: 1
    Last Post: 2007-04-07, 12:39 PM
  4. Insert Block, allow user to enter data, then have the data placed in a Table
    By thomas.stright in forum Dynamic Blocks - Technical
    Replies: 4
    Last Post: 2006-08-11, 02:40 PM
  5. Linking AutoCAD Object Data Table to Access table
    By m.storey in forum AutoCAD Map 3D - General
    Replies: 0
    Last Post: 2006-05-02, 02:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •