- (defun c:dq ()
- (initget "L C R ")
- (setq align (getkword "\n[左对齐(L)/中对齐(C)/右对齐(R)]"))
- (cond
- ((= align "L") (setq promptMsg "\n文字左对齐--垂直"))
- ((= align "C") (setq promptMsg "\n文字中对齐--垂直"))
- ((= align "R") (setq promptMsg "\n文字右对齐--垂直"))
- )
- (prompt promptMsg) ; 输出命令行显示
- (setvar "cmdecho" 0) ; 关闭CAD命令行显示
- (command-s "TEXTALIGN" "O" "V") ; 自定义命令
- (command-s "TEXTALIGN" "I" align) ; 自定义命令
- (setvar "cmdecho" 1) ; 打开CAD命令行显示
- (princ)
- )
|