Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
The (cons 10 x) is exactly (10 0.0 0.0 0.0), but this value in the entmake call causes an error. If i put the value direct, not from x, it works! Why?????????? (defun c:apl () (setq x (list 0.0 0.0 0.0)) (entmake '((0 . "POLYLINE") ; Object type (70 . 8) ; 3d polyline ) ) (entmake '((0 . "VERTEX") ; Object type (70 . 32) ; 3d polyline vertex (cons 10 x) ; Start point -----------------------------------got error here!!!!!!!!!!!!!!! ) ) (entmake '((0 . "VERTEX") ; Object type (70 . 32) ; 3d polyline vertex (10 4.0 6.0 1.0) ; Second point ) ) (entmake '((0 . "VERTEX") ; Object type (70 . 32) ; 3d polyline vertex (10 3.0 2.0 0.0) ; Third point ) ) (entmake '((0 . "SEQEND"))))
Solved! Go to Solution.