Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 2
Anonymous
169 Views, 1 Reply

draw a pline

hello i want to draw a pline with a list of point a try (defun DRAW::POLYLIGNE (pts) (setvar "cmdecho" 0) (command "_.PLINE" (car pts) (foreach p (cdr pts) (command p))) (princ) ) or this (defun DRAW-POLYLIGNE (pts) (command "_PLINE") (mapcar 'command pts) (command "")) but a have always 1 2 3 on prompt how to make this without thanks
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

yopyop wrote: > hello > i want to draw a pline with a list of point a try > > (defun DRAW::POLYLIGNE (pts) (setvar "cmdecho" 0) > (command "_.PLINE" (car pts) (foreach p (cdr pts) (command p))) > (princ) > ) > > or this > (defun DRAW-POLYLIGNE (pts) (command "_PLINE") (mapcar 'command pts) > (command "")) > > but a have always 1 2 3 on prompt how to make this without > > thanks YES now it's ok with entmake (defun trace::po(liste) (entmake (append (list '(0 . "LWPOLYLINE") '(100 . "AcDbEntity") '(100 . "AcDbPolyline") (cons 90 (length liste))) (mapcar '(lambda (x)(cons 10 x))liste))))

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Technology Administrators


Autodesk Design & Make Report