전 건축설계 다니는데요..선의 속성을 바꾸기가 너무
귀찮네요..그걸 단축키로 지정 해서.(예를 들어 1번은col
2번은wall…)이런식으로 바꾸는 방법은 없나요??
저도 이걸 할려고 공부를 해봤는데 lisp같기도 하고..
감이 올뜻 하면서도 안오네요..^^ 부탁드립니다..
cad r14 에서 단축키로 색깔 바꾸는 lisp 좀..
공유
비밀번호를 잊으셨나요? 비밀번호를 재설정하려면 이메일 주소를 입력해주세요.
해당 질문을 신고하는 이유를 간단히 입력해주세요.
해당 답변을 신고하는 이유를 간단히 입력해주세요.
해당 유저를 신고하는 이유를 간단히 입력해주세요.
안녕 하십니까..
이건 제가 사용하고 있는 레이어 관련 리습입니다.
약간 수정 하셔서 사용하시면 가능할검니다.
모르는 부분 있으시면 리플 달아주세요.
그럼 수고하세요.
;=============LAYER 만들기=================================
(defun c:lm()
(setvar “cmdecho” 0)
(command “layer” “m” “1” “c” “green” “”
“m” “2” “c” “red” “”
“m” “3” “c” “yellow” “”
“m” “4” “c” “white” “”
“m” “5” “c” “red” “” “lt” “centerx2” “”
“m” “6” “c” “magenta” “” “lt” “phantom” “”
“m” “7” “c” “cyan” “” “lt” “phantomx2” “”
“m” “8” “c” “yellow” “” “lt” “hidden” “”
“m” “9” “c” “magenta” “”
“m” “10” “c” “white” “” “lt” “hidden” “”
“m” “11” “c” “GREEN” “” “lt” “hidden” “”
“m” “12” “c” “magenta” “” “lt” “hidden” “”
“m” “58” “c” “red” “”
“m” “59” “c” “YELLOW” “”
“m” “60” “c” “green” “”
“m” “61” “c” “green” “”
“m” “62” “c” “green” “”
“m” “63” “c” “red” “” “”
)
(command “layer” “s” “2” “”)
(princ)
);end of lm
;============Layer Hot Key===============
(defun c:la ()(command “.layer”)(princ))
(defun c:ls ()(command “.layer” “s”)(princ))
(defun c:ll ()(command “.layer” “t”)(princ))
(defun c:lf ()(command “.layer” “f”)(princ))
(defun c:11 ()(command “.layer” “s” “1” “”)(princ))
(defun c:22 ()(command “.layer” “s” “2” “”)(princ))
(defun c:33 ()(command “.layer” “s” “3” “”)(princ))
(defun c:44 ()(command “.layer” “s” “4” “”)(princ))
(defun c:55 ()(command “.layer” “s” “5” “”)(princ))
(defun c:66 ()(command “.layer” “s” “6” “”)(princ))
(defun c:77 ()(command “.layer” “s” “7” “”)(princ))
(defun c:88 ()(command “.layer” “s” “8” “”)(princ))
(defun c:99 ()(command “.layer” “s” “9” “”)(princ))
(defun c:10 ()(command “.layer” “s” “10” “”)(princ))
(defun c:1A ()(command “.layer” “s” “11” “”)(princ))
(defun c:6A ()(command “.layer” “s” “12” “”)(princ))
(defun c:q1 ()(setq s (ssget)) (command “.chprop” s “” “la” “1” “”) (princ))
(defun c:q2 ()(setq s (ssget)) (command “.chprop” s “” “la” “2” “”) (princ))
(defun c:q3 ()(setq s (ssget)) (command “.chprop” s “” “la” “3” “”)(princ))
(defun c:q4 ()(setq s (ssget)) (command “.chprop” s “” “la” “4” “”)(princ))
(defun c:q5 ()(setq s (ssget)) (command “.chprop” s “” “la” “5” “”)(princ))
(defun c:q6 ()(setq s (ssget)) (command “.chprop” s “” “la” “6” “”) (princ))
(defun c:q7 ()(setq s (ssget)) (command “.chprop” s “” “la” “7” “”)(princ))
(defun c:q8 ()(setq s (ssget)) (command “.chprop” s “” “la” “8” “”)(princ))
(defun c:q9 ()(setq s (ssget)) (command “.chprop” s “” “la” “9” “”) (princ))
(defun c:q10 () (setq s (ssget)) (command “.chprop” s “” “la” “10” “”) (princ))
(defun c:q1A () (setq s (ssget)) (command “.chprop” s “” “la” “11” “”) (princ))
(defun c:q6A () (setq s (ssget)) (command “.chprop” s “” “la” “12” “”) (princ))
(defun c:q58 () (setq s (ssget)) (command “.chprop” s “” “la” “58” “”) (princ))
(defun c:q59 () (setq s (ssget)) (command “.chprop” s “” “la” “59” “”) (princ))
(defun c:q60 () (setq s (ssget)) (command “.chprop” s “” “la” “60” “”) (princ))
(defun c:q61 () (setq s (ssget)) (command “.chprop” s “” “la” “61” “”) (princ))
(defun c:q62 () (setq s (ssget)) (command “.chprop” s “” “la” “62” “”)(princ))
(defun c:q63 () (setq s (ssget)) (command “.chprop” s “” “la” “63” “”)(princ))
————————————
(defun c:0()
(setvar “cmdecho” 0)
(setq sp (ssget))
(command “chprop” sp “” “la” “0” “”)
(setvar “cmdechp” 1)
)
————————————-
LAYER > LAYER NAME 1 OR 2 OR 3 OR … 쓸만큼 레이어 만듣다.
주의! “0” 으로된 것만 바꾸면서 사용한다.
lisp 알켜 준것에 대해 깊은 감사의 말씀 먼저 올리고요..
모르는부분이 모두 다 라..^^
일단은 님이 적으신 layer만들기 란에는 어디가가 복사를
해야 돼는지와..
layer hot key 란에는 key_mac 화일에 덮어 씌우면 될꺼
같거든요..맞는지 한번…^^
정확히..어디다가..복사를 해야 하는지좀 알켜 주세요..
감사 합니다..
안녕하세요..
1.문 : 일단은 님이 적으신 layer만들기 란에는 어디가가 복사를
해야 돼는지와..
1.답 : 캐드 디렉토리내에 가보시면 acadr14.lsp 라는 파일을 열어서 끝부분에
붙여넣기 하세요.
그리고 나서 캐드를 실행시킨후 command:lm 엔터 하시게 되면
레이어 이름이 1번이고 칼라가 green인 레이어…
레이어 이름이 2번이고 칼라가 red인 레이어…
레이어 이름이 3번이고 칼라가 yellow인 레이어…
레이어 이름이 4번이고 칼라가 white인 레이어…
레이어 이름이 5번이고 칼라가 red, 라인타입이 centerx2인 레이어…
.
.
.
이런식으로 생기게 됨니다.
그리고 만약에 님께서 다른걸로 하고 싶으시면 간단하게 수정하여 사용하시면
가능합니다.
가령 예를 들어서
command “layer” “m” “1” “c” “green” “”
이렇게 되어있는 부분을
레이어 이름을 1이 아닌 “외벽”으로 하고 싶으시면
“1”을 “외벽”으로 수정하시면 그렇게 바뀌게 됨니다.
라인타입이나 칼라도 마찬가지 이구요…
2.문 : layer hot key 란에는 key_mac 화일에 덮어 씌우면 될꺼
같거든요..맞는지 한번…^^
2.답 : 그부분도 마찬가지로 acadr14.lsp 파일 끝부분에 붙여 넣으시고
저장하신후 캐드를 다시 실행시키면 “(defun c:” 의 다음에 나오는 부분이
캐드 명령어가 됨니다.
직접 한번 해보시는게 빠를검다,,,,
그럼 수고하세요…