本帖最后由 1993063 于 2015-5-27 01:02 编辑
- (defun c:bz (/ gp)
- (mapcar 'setvar '("CMDECHO" "EXPERT" "dimclrt") '(0 5 1))
- (setq gp (getstring "\n标注样式(比例)名称:"))
- (if (tblobjname "DIMSTYLE" gp)
- (command "dimstyle" "r" gp)
- (progn
- (command "dimstyle" "r" 1)
- (setvar "dimscale" (atof gp))
- (setvar "dimtofl" 1)
- (command "dimstyle" "s" gp)
- (command "dimstyle" "s" (strcat gp "$3"))
- (command "dimstyle" "s" (strcat gp "$4"))
- (setvar "dimclrt" 1)
- (command "dimstyle" "r" gp)
- )
- )
- (setvar "EXPERT" 0)
- (prompt (strcat "\n标注样式:〖 " gp " 〗成功创建"))
- (princ)
- )
|