+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Forum Newbie
    Using
    AutoCAD 2014
    Join Date
    Aug 2013
    Posts
    4

    Default Getting Coordinates of a polyline with a constant X step

    Registered forum members do not see this ad.

    Hello everyone,

    in order to obtain a seabed profile for a school project, I need to get the Y coordinate of a polyline on several Kilometers with a fxed X step of 2m between each point.

    For the moment, the only manual solution I have found is to create a vertical line every 2m and to get the distance between the intersection of this line with my polyline and an horizontal line representing the mean sea level.

    Is there any way to automatize it because it is very long to do manually and I don't have enough time ?

    I did not succeed in doing this with dataExtraction. I also found on the internet a LISP file which extract the coordinates of points contained in the window. Nevertheless, I was told it is not possible to create automatically points on a curved polyline with a fixed x step.

    What I need at the end is an excel file of this type to use it in another software:

    X(m) Water Depth (m)
    0 15.121
    2 15.134
    4 15.147
    ... ...

    I precise I am a beginner in autocad, I have started today.

    Have you got any idea to solve this problem ?

    Thank you in advance

  2. #2
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,044

    Default

    As your problem and needs are unique, it would help if you could attach a drawing to show what you are trying to achieve.

    And when you say a fixed X step on a curved polyline, do you mean a fixed horizontal interval rather than a fixed length along the polyline?

    We need to know what you are after, before the brains can grind into action

  3. #3
    Forum Newbie
    Using
    AutoCAD 2014
    Join Date
    Aug 2013
    Posts
    4

    Default

    Concerning the length, yes that is exactly what I meant, thank you to reformulate it in a better way. My expression in english is not crystal clear yet ^^.

    About the drawings, as It is a school project in partnership with my teacher's laboratory, I am not sur I am allowed to attach the whole file.
    I have attached a snapshot of a small part of the line.

    Snapshot_Seabed.jpg

  4. #4
    Forum Newbie
    Using
    AutoCAD 2014
    Join Date
    Aug 2013
    Posts
    4

    Default

    What I need exactly is the distance between the bottom yellow curved polyline representing the seabed and the blue straight line representing the sea level with a fixed horizontal interval of 2m. But if I get the Y coordinate it is okay, I will just need to minus it with a constant value after.

    Thank you

  5. #5
    Forum Newbie
    Using
    AutoCAD 2014
    Join Date
    Aug 2013
    Posts
    4

    Default

    I think I have finally found a way to do it :
    First, I create a vertical line every 2m then I found a lsp to automatically create points at intersection between objects.

    Finally I found another lsp which extract the point coordinates of a drawing in a txt file.

    Sorry for the inconvenience, thanks for your help.

  6. #6
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    4,044

    Default

    Registered forum members do not see this ad.

    There is absolutely no inconvenience. and congratulations on finding a way to do what you wanted.

    There are plenty of tools available, and finding them is all part of learning.

Similar Threads

  1. step by step guide for complete beginners
    By englishben in forum AutoCAD Beginners' Area
    Replies: 7
    Last Post: 8th Oct 2011, 06:14 am
  2. Replies: 0
    Last Post: 22nd Nov 2010, 07:43 pm
  3. polyline coordinates
    By eg0n in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 20th Oct 2010, 03:43 am
  4. Step by step convert dwg to tiff file
    By mrsdrafter in forum AutoCAD General
    Replies: 8
    Last Post: 29th Nov 2007, 10:37 am
  5. Polyline with constant radius LISP
    By crimhoff in forum AutoLISP, Visual LISP & DCL
    Replies: 13
    Last Post: 21st Nov 2007, 11:23 pm

Tags for this Thread

Bookmarks

Posting Permissions

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