(defun c:ext ()
(setvar “CMDECHO” 0)
(setq d 0)
(setq e (entnext))
(while e
;(print (entget e))
(setq s (cdr (assoc 0 (entget e))))
(setq tt (cdr (assoc 7 (entget e))))
(IF (/= NIL tt)
(SETVAR “TEXTSTYLE” (cdr (assoc 7 (entget e))))
(SETVAR “FONTALT” “isocp3.shx”)
; (SETVAR “FONTALT” “ghs.shx”)
)
(if (= “TEXT” s)
(command “-style” (cdr (assoc 7 (entget e))) “isocp3.shx , ghs.shx” “” “” “” “N” “N” “N”)
(setq d (1+ d))
)
;(terpri)
(setq e (entnext e))
)
(command “regen”)
)
;(command “-style” “HSW” “isocp3.shx,ghs.shx” “”
; “” “” “” “n” “n” “n” “”)
먼저 폰트리습은 txt.shx whgtxt.shx 쓰고있었고 적용이잘되었는데..
음… 폰트만 수정하고 리습해봤는데 안되네여….ㅠㅠ 뭐가문제일까여
(command “-style” (cdr (assoc 7 (entget e))) “isocp3.shx , ghs.shx” “” “” “” “N” “N” )
이렇게 바꾸시면 될겁니다~
autocad2010 에서 확인했습니다.
도면 객체 전체를 검색하셨는데..
저라면..
(tblsearch “style” 로.. 스타일만 찾아서.. 스타일만 바꾸겠습니다…