tflaherty
2005-05-12, 02:55 AM
Here's my code, which doesn't work. All the examples I've seen always have the 2 capital letters together; is that how I have to do it, or is there a way to make this code work.
(initget "Yes No")
(setq drawroof (getkword "\nReady to draw roof? [Yes/No] <Yes> "))
(if (or (= drawroof "Yes") (not drawroof))
(progn
(initget "TopRight TopLeft BottomLeft BottomRight")
(setq hip (getkword "\nSpecify corner to insert hip [TopRight/TopLeft/BottomLeft/BottomRight]: "))
(cond ((= hip "TopRight") (hip45))
((= hip "TopLeft") (hip135))
((= hip "BottomLeft") (hip225))
((= hip "BottomRight") (hip315)))))
(initget "Yes No")
(setq drawroof (getkword "\nReady to draw roof? [Yes/No] <Yes> "))
(if (or (= drawroof "Yes") (not drawroof))
(progn
(initget "TopRight TopLeft BottomLeft BottomRight")
(setq hip (getkword "\nSpecify corner to insert hip [TopRight/TopLeft/BottomLeft/BottomRight]: "))
(cond ((= hip "TopRight") (hip45))
((= hip "TopLeft") (hip135))
((= hip "BottomLeft") (hip225))
((= hip "BottomRight") (hip315)))))