+ Reply to Thread
Page 3 of 3 FirstFirst 1 2 3
Results 21 to 25 of 25
  1. #21
    Senior Member
    Using
    Map 3D 2007
    Join Date
    May 2011
    Location
    autocad
    Posts
    134

    Default

    Registered forum members do not see this ad.

    Hi pBe,
    Below code I am using for my daily use..
    Code:
    (defun c:InqPoly ()
      (vl-load-com)
          (setq Kproute (car (entsel "\nSelect polyline Route:")))
          (setq Ppoint (getpoint "\nSpecify point:"))
          (setq dist (if (vlax-curve-getDistAtPoint Kproute Ppoint)
                    (vlax-curve-getDistAtParam Kproute
                       (vlax-curve-getParamAtPoint  Kproute Ppoint))
         (vlax-curve-getDistAtPoint Kproute (vlax-curve-getClosestPointTo  Kproute Ppoint))))
      (setq offst (distance (vlax-curve-getClosestPointTo  Kproute Ppoint) Ppoint))
      (princ (strcat "\nKP on this point is: " (rtos dist 2 3) " " "Offset is:" (rtos offst 2 3)))
            (princ)
          )
    I kept my promise.
    Thanks to YOU and MIRCEA..

  2. #22
    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
    2,986

    Default

    That looks good, Aaryan. Congratulation!
    Regards,
    Mircea

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

  3. #23
    Senior Member
    Using
    Map 3D 2007
    Join Date
    May 2011
    Location
    autocad
    Posts
    134

    Default

    Thank You.

  4. #24
    Forum Deity pBe's Avatar
    Computer Details
    pBe's Computer Details
    Operating System:
    Windows XP
    Discipline
    Construction
    pBe's Discipline Details
    Discipline
    Construction
    Details
    Camp Construction planning and details
    Using
    AutoCAD 2009
    Join Date
    Apr 2010
    Posts
    2,089

    Default

    Quote Originally Posted by aaryan View Post
    I kept my promise.
    Thanks to YOU and MIRCEA..
    We know you had it in you Aaryan. ,
    Good job.

    Keep on coding

  5. #25
    Senior Member
    Using
    Map 3D 2007
    Join Date
    May 2011
    Location
    autocad
    Posts
    134

    Default

    Registered forum members do not see this ad.

    Thank You.

Similar Threads

  1. Where to Start?
    By donbosco in forum Autodesk Inventor
    Replies: 4
    Last Post: 14th Jun 2010, 09:42 pm
  2. where do i start
    By itsmeagain in forum AutoCAD Beginners' Area
    Replies: 17
    Last Post: 4th Nov 2009, 07:30 pm
  3. Where Do I Start?
    By parkpointer in forum AutoCAD Beginners' Area
    Replies: 1
    Last Post: 1st Jan 2007, 10:42 pm
  4. Where to start?
    By Random1 in forum Autodesk Inventor
    Replies: 2
    Last Post: 29th Mar 2006, 07:36 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