+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Senior Member
    Using
    AutoCAD 2011
    Join Date
    Jan 2014
    Posts
    169

    Default extracting Easting Northing from a polyline

    Registered forum members do not see this ad.

    Hello

    I have a polyline and I'd like to extract the easting northing coordinates at 1 meter interval, is it possible to do that?

    ps no LIST command

    I need to extract a point every meter

    many thanks!

  2. #2
    Quantum Mechanic BIGAL's Avatar
    Using
    Civil 3D 2016
    Join Date
    Dec 2005
    Location
    GEELONG AUSTRALIA
    Posts
    10,581

    Default

    Registered forum members do not see this ad.

    Its a very simple task there is a vl function vlax-curve-getpointatdist which does just that. This can be expanded out to use with other objects like circle, arc & line, all in one routine.

    Code:
    (defun ptsatdist ( / obj dist distx pt)
      (setq obj (vlax-ename->vla-object (car (entsel "\nPick object"))))
      (setq dist 1.0)
      (setq distx dist)
      (if (/= (setq len (vla-get-length obj)) nil)
        (progn
          (repeat (fix  (/ len dist))
          (princ "\n")
          (setq pt (vlax-curve-getpointatdist obj distx))
           (setq distx (+ distx dist))
           (princ (strcat (rtos distx 2 0) " X= " (rtos (car pt) 2 2) " Y= " (rtos (cadr pt) 2 2)))
           )
        )
      )
    )
    (ptsatdist)
    A man who never made mistakes never made anything

Similar Threads

  1. Replies: 3
    Last Post: 26th Jul 2016, 02:12 pm
  2. Gps coordinates (northing & easting)
    By NSSC in forum AutoCAD General
    Replies: 6
    Last Post: 25th Oct 2012, 01:39 pm
  3. Help: Northing and Easting??
    By tzframpton in forum Civil 3D & LDD
    Replies: 10
    Last Post: 15th Feb 2011, 02:37 pm
  4. Attributes - Northing/Easting
    By SAM24462 in forum AutoCAD General
    Replies: 7
    Last Post: 7th Apr 2010, 02:47 pm
  5. Northing and Easting tags?
    By BigMikeLV in forum AutoCAD Drawing Management & Output
    Replies: 11
    Last Post: 18th Nov 2008, 04:45 pm

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