- (defun c:test ()
- (setq pts '((102.946 68.6354 3) (112.102 97.4851 3) (125.484 59.4879 3) (103.651 52.4513 3))
- Closed 1
- )
- (Ent:Make_Poly pts 1)
- )
- (defun Ent:Make_Poly (pts Closed / e)
- (if (= Closed 1)
- (setq e (Entmake (list '(0 . "POLYLINE") '(70 . 9))))
- (setq e (Entmake (list '(0 . "POLYLINE") '(70 . 8))))
- )
- (foreach p pts
- (entmake (list '(0 . "VERTEX") '(70 . 32) (cons 10 p)))
- )
- (entmake '((0 . "SEQEND")))
- (entlast)
- )
|