Results 1 to 6 of 6

Thread: 3D Polyline coordinates

  1. #1
    I could stop if I wanted to lmitsou's Avatar
    Join Date
    2003-01
    Location
    UK
    Posts
    219
    Login to Give a bone
    0

    Default 3D Polyline coordinates

    Hi all,

    I have a 3d survey and I am trying to get some coordinates from the 3d polylines. Is there any way (without having to do it manually which would take quite some time) to get x,y and z coordinates wherever there is a grip on a 3d polyline? Perhaps a routine that would automatically add x,y,z coordinates (text or mtext) to every grip of the 3d polyline. It would be a bonus if the text/mtext could be exported to csv, txt or xls format too.

    I have already used a lisp routine that did 2/3 of what I look for. I had to manually click on every grip point of the 3d polyline though which took ages.

    Thanks for your help in advance.


  2. #2
    Member
    Join Date
    2002-08
    Posts
    43
    Login to Give a bone
    0

    Smile Re: 3D Polyline coordinates

    Entsel to choose the object
    Entnext to move from one vertex to an other
    Entget to get dxf codes of a vertex
    Assoc 10 to retreive the x y and z coordinates

    Quote Originally Posted by lmitsou View Post
    Hi all,

    I have a 3d survey and I am trying to get some coordinates from the 3d polylines. Is there any way (without having to do it manually which would take quite some time) to get x,y and z coordinates wherever there is a grip on a 3d polyline? Perhaps a routine that would automatically add x,y,z coordinates (text or mtext) to every grip of the 3d polyline. It would be a bonus if the text/mtext could be exported to csv, txt or xls format too.

    I have already used a lisp routine that did 2/3 of what I look for. I had to manually click on every grip point of the 3d polyline though which took ages.

    Thanks for your help in advance.


  3. #3
    I could stop if I wanted to
    Join Date
    2007-08
    Posts
    201
    Login to Give a bone
    0

    Default Re: 3D Polyline coordinates

    Hi,

    You can have a look to this thread.

  4. #4
    I could stop if I wanted to lmitsou's Avatar
    Join Date
    2003-01
    Location
    UK
    Posts
    219
    Login to Give a bone
    0

    Default Re: 3D Polyline coordinates

    Quote Originally Posted by 'gile' View Post
    Hi,

    You can have a look to this thread.
    Hi gile (sorry I don't know your name),

    I tried to run your routine but it returns a BLANKTXT error. Not sure if I am doing something wrong. Can you please give me some instructions as to how it works?

    Thanks,

  5. #5
    I could stop if I wanted to
    Join Date
    2007-08
    Posts
    201
    Login to Give a bone
    0

    Default Re: 3D Polyline coordinates

    Hi,

    You have to load the Poly-pts routine, then you paste the following expression on the command line

    Code:
    ((lambda (/ ent)
       (if
         (and (setq ent (car (entsel)))
    	  (wcmatch (cdr (assoc 0 (entget ent))) "*POLYLINE")
         )
          (Poly-Pts ent)
       )
     )
    )

  6. #6
    I could stop if I wanted to lmitsou's Avatar
    Join Date
    2003-01
    Location
    UK
    Posts
    219
    Login to Give a bone
    0

    Default Re: 3D Polyline coordinates

    Hi gile,

    Thanks for the reply. It worked fine.

    Is there any way to have the coords appearing next to the vertices, perhaps as mtext or text or even blocks? This way they would be clearly visible on the drawing and also I could export them into excel.

    Thanks,

Similar Threads

  1. Select polyline and get coordinates
    By avinash patil in forum Dot Net API
    Replies: 5
    Last Post: 2012-11-04, 08:24 PM
  2. Polyline Coordinates finding
    By avinash patil in forum VBA/COM Interop
    Replies: 1
    Last Post: 2012-08-30, 11:29 AM
  3. Replies: 8
    Last Post: 2007-06-07, 07:53 PM
  4. Replies: 8
    Last Post: 2007-03-12, 11:30 AM
  5. Tracing polyline coordinates using map/lisp
    By bprabhakar001 in forum AutoLISP
    Replies: 1
    Last Post: 2006-06-21, 11:39 AM

Posting Permissions

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