+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 10 x64 bit
    Using
    Mechanical 2015
    Join Date
    May 2011
    Location
    India
    Posts
    162

    Default Point coordinate on Polyline

    Registered forum members do not see this ad.

    Hi All,

    Please Help
    How do i get a point coordinate on a polyline from start point at given distance using Lisp.


    Thanks in advance
    Aaryan

  2. #2
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    4,008

    Default

    Please check the VLAX-CURVE-GETPOINTATDIST function.
    Code:
    (if (and (setq ssetPoly (ssget "_:S" '((0 . "LWPOLYLINE"))))
             (setq theDist  (getreal "\nDistance: ")))
     (print (vlax-curve-getPointAtDist (ssname ssetPoly 0) theDist))
    )
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

  3. #3
    Senior Member
    Computer Details
    aaryan's Computer Details
    Operating System:
    Windows 10 x64 bit
    Using
    Mechanical 2015
    Join Date
    May 2011
    Location
    India
    Posts
    162

    Default

    Thank You So Much
    Mircea

    Regards
    Aaryan

  4. #4
    Forum Deity MSasu's Avatar
    Discipline
    Construction
    MSasu's Discipline Details
    Occupation
    engineer
    Discipline
    Construction
    Details
    AutoLISP programmer
    Using
    AutoCAD 2013
    Join Date
    Mar 2009
    Location
    Brasov, Romania
    Posts
    4,008

    Default

    Registered forum members do not see this ad.

    You’re welcome Aaryan!

    If you check this function in help, will notify that the curve argument is requested in VLA format; but when test will see that is accepted as entity name, too.
    Regards,
    Mircea

    AutoCAD's happy user equation: FILEDIA + PICKADD² + PICKFIRST = 3

Similar Threads

  1. Get coordinate of polyline by VBA
    By quangducnguyen in forum .NET, ObjectARX & VBA
    Replies: 10
    Last Post: 31st Oct 2014, 11:45 pm
  2. Replies: 1
    Last Post: 29th Aug 2011, 10:00 pm
  3. Replies: 0
    Last Post: 29th Aug 2011, 09:52 pm
  4. coordinate point by DEG/MIN/SEC
    By e.mounir in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 7th Jun 2010, 01:28 pm
  5. find coordinate of a point at desired distanse of a polyline!!
    By kasra in forum AutoLISP, Visual LISP & DCL
    Replies: 8
    Last Post: 27th Apr 2010, 12:30 am

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