(progn (cond --- I have a question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
hello..
this is change linetype lsp. I am making draft of it but, it doesn't working
what is that reason???
let me know please..
(defun c:ty ( / i ss )
(setvar "cmdecho" 0)
(if (setq i (getstring "\n\t-> Hidden(H) Hidden2(H2) HiddenX2(HX2) CONtinuous(CON) CenTer(C) Center2(C2) CenterX2(CX2) Dot2(D2) : "))
(progn
(setq ss (ssget '((0 . "LINE")))
(sssetfirst nil ss)
(cond
( (= i h) (princ "\n\t = HIDDEN Linetype") (command "_.change" ss "" "p" "lt" "hidden" "") )
( (= i h2) (princ "\n\t = HIDDEN2 Linetype") (command "_.change" ss "" "p" "lt" "hidden2" "") )
( (= i hx2) (princ "\n\t = HIDDENX2 Linetype") (command "_.change" ss "" "p" "lt" "hiddenx2" "") )
( (= i con) (princ "\n\t = CONTINUOUS Linetype") (command "_.change" ss "" "p" "lt" "CONTINUOUS" "") )
( (= i c) (princ "\n\t = CENTER Linetype") (command "_.change" ss "" "p" "lt" "CENTER" "") )
( (= i c2) (princ "\n\t = CENTER2 Linetype") (command "_.change" ss "" "p" "lt" "CENTER2" "") )
( (= i cx2) (princ "\n\t = CENTERX2 Linetype") (command "_.change" ss "" "p" "lt" "CENTERX2" "") )
( (= i d2) (princ "\n\t = DOT2 Linetype") (command "_.change" ss "" "p" "lt" "DOTX2" "") )
) ;cond
)
) ;progn
) ; if
(princ)
) ; defun