Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This is mainly a list processing question.
Please help create the LWPOLYLINE entlist for entmake:
;; LWPOLYLINE.lsp
;;
;; test for LWPOLYLINE creation
;;
(defun test ()
(setq plverts '((1 2) (2 3) (5 6))
plbulg (0.0 0.5 0.0)
entdef (append
(list
'(0 . "LWPOLYLINE")
(cons 8 0)
(cons 67 0)
'(100 . "AcDbPolyline")
(cons 90 (length plverts))
(cons 70 0)
(cons 43 0.0)
(cons 38 0.0)
(cons 39 0.0)
)
(mapcar ; this is the peice that doesn't work
'(lambda (#10 #42)
(list
(cons 10 #10)
(cons 42 #42)
)
)
plverts
plbulg
)
(list
(cons 210 (0.0 0.0 1.0))
)
)
)
(princ entdef)
(entmake entdef)
)
Solved! Go to Solution.