level 1
深藍基因
楼主
写了一个程序,当选中标注时,可以将其转换为我想要的任一标注样式(标注样式事先已设置好)。然而当前标注样式不改变,lisp程序如下:
(setq m_temp (getvar "cmdecho"))
(setq m_temp2 (getvar "dimstyle"))
(setq cat(cadr (ssgetfirst)))
(setq ss (ssget "x" (list(cons 0 "DIMENSION"))))
(if cat
(
(command "dimstyle" "r" dog)
(command "dimstyle" "a" ss"")
(command "dimstyle" "r" m_temp2)
)
)
2013年09月12日 01点09分
1
(setq m_temp (getvar "cmdecho"))
(setq m_temp2 (getvar "dimstyle"))
(setq cat(cadr (ssgetfirst)))
(setq ss (ssget "x" (list(cons 0 "DIMENSION"))))
(if cat
(
(command "dimstyle" "r" dog)
(command "dimstyle" "a" ss"")
(command "dimstyle" "r" m_temp2)
)
)