본문 바로가기
autocad

Change Fonts of All Styles to "simplex.shx,whgtxt.shx"

by kmlab 2022. 12. 1.

모든 스타일의 글꼴을 심플렉스와 윈도한글로 바꾸기 (trusted_dwg 님께 감사)
단순 참고용 도면을 열었을 때 폰트가 없어서 안보여~~ 그럼 CF 실행!!

 

모든 문자 스타일의 글꼴을 바꿔주는 리습

아래 리습을 조금 더 수정한 리습과 왜 원하는 글꼴이 적용되지 않는지에 대한 글은 아래의 포스팅을 참고...

blog.naver.com


(defun c:CF() ;Change Fonts
  (setq !Style (tblnext "STYLE" T))
  (while !Style
    (setq !Style (strcase (cdr (assoc 2 !Style))))
    (command "-style" !Style "simplex.shx,whgtxt.shx" "0" "1" "0" "n" "n" "n")
    (setq !Style (tblnext "STYLE"))
  )
)

반응형

'autocad' 카테고리의 다른 글

QuitAll  (0) 2023.02.03
Set the 'Windows Desktop' Unit format on all dimstyles  (0) 2023.01.05
STAIR CALCULATOR  (1) 2022.09.30
Date and Time Stamping  (0) 2022.07.14
TEXT MOVE TO MID POINT, ROTATE 0, JUSTIFY MIDDLE  (0) 2022.07.08