Lv.0 등록일: 2010-08-112010-08-11T11:12:01+09:00 2010-08-11T11:12:01+09:00카테고리: AutoCAD & CADian 객체선택하면 레이어 자동으로 변하는 현상 캐드 2010사용중입니다. 기본레이어가 “0”으로 맞춰져 있다고 하면작업하다보면 레이어가 자동으로 다른레이어로 바뀌어 있던데이거 왜이런걸까요?은근 귀찮네요 ㅡ.,ㅡ; 공유 Facebook 관련 있는 질문들 mvsetup 및 align 안됨 mvsetup 및 align 안됨 에어컨 실외기 도면 cad에서 기준점 복사 후 다른 파일에 붙여넣기 시 블록참조객체의 길이가 줄어들어있어요 2 답변 작성 순 최신 순 공감 순 [Deleted User] 2010-08-11T11:32:20+09:00답변 등록 답변 등록 일시 2010-08-11 11:32 am (defun c:qw(/ ent ed la en cdim h-name h-scal h-ang cts) (setq ent (car (entsel “레이어변경:”))) (if ent (progn (setq ed (entget ent)) (setq la (cdr (assoc 8 ed))) (setq en (cdr (assoc 0 ed))) (setvar “clayer” la) (cond ((or (= en “dimension”) (= en “leader”)) (setq cdim (cdr (assoc 3 ed))) (command “dimstyle” “r” cdim) ) ((or (= en “text”) (= en “mtext”)) (setq cts (cdr (assoc 7 ed))) (setvar “textstyle” cts) ) ((= en “hatch”) (setq h-name (cdr (assoc 2 ed))) (setvar “hpname” h-name) (if (/= h=name “solid”) (progn (setq h-scal (cdr (assoc 41 ed))) (setq h-ang (cdr (assoc 52 ed))) (setvar “hpscale” h-scal) (setvar “hpang” h-ang) ) ) ) ) (princ “Wn레이어변경”) (cond ((/= cdim nil) (princ ” & 치수스타일변경”)) ((/= h-name nil) (princ ” & 해치스타일변경”)) ((/= cts nil) (princ ” & 문자스타일변경”)) ) ) ) (princ) ) [Deleted User] 2010-08-11T11:33:34+09:00답변 등록 답변 등록 일시 2010-08-11 11:33 am 명령어는 qw <–바꾸셔도 되구요.. 레이어 변경 리습 입니다.
(defun c:qw(/ ent ed la en cdim h-name h-scal h-ang cts)
(setq ent (car (entsel “레이어변경:”)))
(if ent
(progn
(setq ed (entget ent))
(setq la (cdr (assoc 8 ed)))
(setq en (cdr (assoc 0 ed)))
(setvar “clayer” la)
(cond ((or (= en “dimension”) (= en “leader”))
(setq cdim (cdr (assoc 3 ed)))
(command “dimstyle” “r” cdim)
)
((or (= en “text”) (= en “mtext”))
(setq cts (cdr (assoc 7 ed)))
(setvar “textstyle” cts)
)
((= en “hatch”)
(setq h-name (cdr (assoc 2 ed)))
(setvar “hpname” h-name)
(if (/= h=name “solid”)
(progn
(setq h-scal (cdr (assoc 41 ed)))
(setq h-ang (cdr (assoc 52 ed)))
(setvar “hpscale” h-scal)
(setvar “hpang” h-ang)
)
)
)
)
(princ “Wn레이어변경”)
(cond ((/= cdim nil) (princ ” & 치수스타일변경”))
((/= h-name nil) (princ ” & 해치스타일변경”))
((/= cts nil) (princ ” & 문자스타일변경”))
)
)
)
(princ)
)
명령어는 qw <–바꾸셔도 되구요..
레이어 변경 리습 입니다.