본문 바로가기
autocad

DIMSTYLE 한번에 지정하기

by kmlab 2024. 6. 17.

specify_dimstyle.lsp
0.00MB

;;모든 DIMSTYLE의 선형치수 단위에 "," 표시, 문자색상 green으로 지정하기
;;
(defun c:d,d() 
(setq !Dimstyle (tblnext "DIMSTYLE" T))   
(while !Dimstyle     
  (setq !Dimstyle (strcase (cdr (assoc 2 !Dimstyle))))     
  (command "-dimstyle" "r" !Dimstyle)        
  (setvar "DIMLUNIT" 6) ;Linear dimensions Unit format ;6 Windows Desktop ;2 Decimal 
  (setvar "DIMCLRT" 3)   
  (command "-dimstyle" "s" !Dimstyle "y")
  (setq !Dimstyle (tblnext "DIMSTYLE"))
)
(princ)
)

반응형

'autocad' 카테고리의 다른 글

Select All Mtext in "??-GNRL_text" Layer  (0) 2024.06.17
TBLNEXT; TBLSEARCH (펌)  (0) 2024.06.17
Sheet_A1... 블록 선택하기  (0) 2024.06.12
Fix Relocate Sheet A1 (c:RS)  (0) 2024.05.23
(wcmatch string pattern)  (0) 2024.05.20