Create Polyline from List
Create Polyline from List
(OP)
I would like to draw a single polyline over a given
list of points.But I always get numerous polylines
(from point to point).
The pointlist has the format ((x1 y1 z1) (x2 y2 z2) ... (xn yn zn)).
The function looks like:
(While (<= counter
(- (length list1) 1)
)
(setq p1 (nth counter list1))
(setq p2 (nth (1+ counter) list1))
(setq zaehler (1+ counter))
(command "_pline" p1 p2 "")
)
Any help would be appreciated!!
list of points.But I always get numerous polylines
(from point to point).
The pointlist has the format ((x1 y1 z1) (x2 y2 z2) ... (xn yn zn)).
The function looks like:
(While (<= counter
(- (length list1) 1)
)
(setq p1 (nth counter list1))
(setq p2 (nth (1+ counter) list1))
(setq zaehler (1+ counter))
(command "_pline" p1 p2 "")
)
Any help would be appreciated!!





RE: Create Polyline from List
----------------------------------------------------------
(command "_pline")
(While (<= counter
(- (length list1) 1)
)
(setq p1 (nth counter list1))
(setq p2 (nth (1+ counter) list1))
(setq zaehler (1+ counter))
(command p1)
)
(command "")
RE: Create Polyline from List
Works fine!
RE: Create Polyline from List
This is a form more easy:
(command "_.pline")
(foreach pt list1
(command pt)
)
(command "")
Un saludo de SpeedCAD... :)
CHILE