See the top rated post in this thread. Click here

Results 1 to 5 of 5

Thread: Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

  1. #1
    Member
    Join Date
    2002-02
    Posts
    44
    Login to Give a bone
    0

    Default Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

    How would one go about stepping through individual vertices of an LWPOLYLINE without using Visual Lisp functions?

    Is there a method beyond using (FOREACH? Perhaps a way to use (ASSOC 10, and getting differing verices?

    Thanks,
    Wayne

  2. #2
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

    Code:
    (vl-remove-if-not
     '(lambda (x)
      (equal (car x) 10)
     )
     (entget (car (entsel "\n Select polyline: ")))
    )
    ??

    Or with 'mapcar'. It depends on what you want to do to each point. If you just want to grab them, then I think foreach will work for you best.

  3. #3
    Member
    Join Date
    2002-02
    Posts
    44
    Login to Give a bone
    0

    Default Re: Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

    Please do not reply to this question if you will be posting a wrong answer.
    Quote Originally Posted by argutuq
    "...without using Visual Lisp functions?"
    Last edited by argutuq; 2007-02-19 at 11:49 PM.

  4. #4
    All AUGI, all the time
    Join Date
    2015-12
    Location
    Central Oregon
    Posts
    591
    Login to Give a bone
    2

    Default Re: Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

    Quote Originally Posted by argutuq
    Please do not reply to this question if you will be posting a wrong answer.
    And just why are you set on not using the VL- functions? They are an integral part of Autocad and Lisp. Nevertheless, this will do what you want:
    Code:
    deleted code.....don't be rude to those that try to help.
    Last edited by Jeff_M; 2007-02-20 at 06:35 PM.

  5. #5
    AUGI Addict
    Join Date
    2005-08
    Posts
    1,043
    Login to Give a bone
    0

    Default Re: Step through individual vertices of an LWPOLYLINE without using Visual Lisp functions

    Quote Originally Posted by argutuq
    Please do not reply to this question if you will be posting a wrong answer.
    Maybe you didn't see the second part of my response. Guess you don't need that type of help either though since you know how to do it yourself.

Similar Threads

  1. CP41-1: Introduction to VL Functions in Visual LISP
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2013-04-08, 07:21 PM
  2. CP42-3: Introduction to Visual LISP's vl- functions
    By Autodesk University in forum Customization and Programming
    Replies: 0
    Last Post: 2013-03-30, 02:16 AM
  3. Replies: 1
    Last Post: 2012-01-05, 09:13 PM
  4. visual lisp editor should be like visual studio
    By Wish List System in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2011-11-17, 05:33 PM
  5. Replies: 4
    Last Post: 2007-09-12, 09:03 PM

Posting Permissions

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