Results 1 to 2 of 2

Thread: Draw Polyline from list of points

  1. #1
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Draw Polyline from list of points

    Hopefully an easy one.
    I have a list of points and need a polyline drawn between each point.
    Any ideas on how this could be achieved?
    This is my attempt where Trail is a list of points

    Code:
    		(setq i2 0)
    		(command "polyline")
    			(repeat (- (length Trail) 1)
    				(setq 	i2 		(+ i2 1)
    						p1 	(nth (- i2 1) Trail)
    						p2 	(nth i2 Trail)
    				)
    				(command p1 p2)
    			)
    		(command "")

  2. #2
    I could stop if I wanted to
    Join Date
    2012-11
    Location
    Brisbane, Australia
    Posts
    239
    Login to Give a bone
    0

    Default Re: Draw Polyline from list of points

    Sorry all, a dumb mistake on my behalf.
    I used 'Polyline" instead of "_Pline".
    How do I delete the thread?

Similar Threads

  1. Replies: 8
    Last Post: 2013-11-15, 03:25 PM
  2. trying to draw lines from a points list help
    By d_m_hopper in forum AutoLISP
    Replies: 7
    Last Post: 2008-04-08, 11:59 AM
  3. How to draw a 3d polyline from a list of points?
    By GreyHippo in forum AutoLISP
    Replies: 2
    Last Post: 2006-12-15, 06:35 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
  •