Message 1 of 3
LISP error

Not applicable
12-18-2015
08:03 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This LISP came straight out of the book
(c:rrc ( / arclength)
(if (= (tblsearch "layer" "RevCloud") nil)
(command "-layer" "m" "RevCloud" "c" "1" "" "")
)
(command "rectang" PAUSE PAUSE)
(if(> (setq arclength (abs (getvar "dimscale")))1)
(setq arclength (* arclength 2))
(setq arclength 1.0)
)
(command "revcloud" "a" (/ arclength 2) arclength "o" (entlast) "")
(princ)
)
when I load it I get this error
; error: bad argument type: numberp: nil
Can anyone help. The book says it creates a revision cloud after drawing a rectangle. Grateful for any advise. I am just starting to learn LISP and did not expect to get an error for a LISP directly from a book.