home *** CD-ROM | disk | FTP | other *** search
-
- (defun C:LT0(/ sp ep pl n oer kword tes)
- (if (/= s1 "4") (progn
- (setvar "ORTHOMODE" 1)
- (command "layer" "m" "pstair1" "")
- (setq tes t)
- (while tes
- (initget 1)
- (setq sp (getpoint "\n┬Ñ╠▌╝²═╖╞≡╡π:"))
- (setq pl nil pl (cons sp pl))
- (while sp
- (initget "Undo")
- (setq ep (getpoint sp "\n╗╪═╦Undo/<╧┬╥╗╡π>:"))
- (if (= ep "Undo") (if (> (length pl) 1) (setq pl (cdr pl) sp (car pl)) (princ "*╗╪═╦═Ω┴╦*"))
- (if (/= ep nil) (setq pl (cons ep pl) sp ep) (setq sp ep))
- )
- )
- (setq pl (reverse pl) sp (nth 0 pl) n 1)
- (initget "Up")
- (setq kword (getkword "\╔╧Up/<╧┬>:"))
- (if (= kword "Up") (setq kword "╔╧") (setq kword "╧┬"))
- (setq ep (polar sp (angle (nth n pl) sp) (* 4 (getvar "userr1"))))
- (command "text" "c" ep (* 3 (getvar "userr1")) "0" kword)
- (command "pline" sp "w" 0 "")
- (repeat (- (length pl) 1)
- (command (nth n pl))
- (setq n (1+ n))
- )
- (command)
- (setq ep (nth (1- n) pl) sp (nth (- n 2) pl) sp (polar ep (angle ep sp) (* 2.5 (getvar "userr1"))))
- (command "pline" ep "w" 0 (getvar "userr1") sp "")
- (setq kword "No")
- (initget "Yes No")
- (setq kword (getkword "\n╩╟╖±╝╠╨°▒Ω╫ó┬Ñ╠▌╔╧╧┬╧▀? Yes/No <N>:"))
- (if (/= kword "Yes") (setq tes nil))
- );while
- ))
- )