TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: SPDCad on January 24, 2005, 03:48:07 PM
-
Anyone have any quick code to extracting the points of a polyline.
I have seen it posted here or at Cadalog a little while back but I can't seem to find it.
I also have some code for this buried in one of my lisp, but that two I can’t seem to find.
Boy, I am having a bad day! I need a vacation. :)
-
Here's one way:
(setq pline (car (entsel)))
(setq ent (entget pline))
(setq coords (mapcar 'cdr
(vl-remove-if-not
'(lambda (x)
(= 10 (car x)))
ent)))
-
Thanks Jeff_M
-
Jeff,
You sure know how to cut right to the problem.
Very nice solution. :)
CAB