- ;; 说明:用lisp创建菜单
- (defun c:tt ()
- (setvar "filedia" 0)
- (if (not (menugroup "yzxf"))
- (progn
- (setq path (getvar "dwgprefix"))
- (setq fn (strcat path "yzxf.mnu")
- f (open fn "W")
- )
- (write-line "***MENUGROUP=yzxf" f)
- (write-line "***POP1" f)
- (write-line "[预知幸福系统]" f) ;菜单头
- (write-line "[--]" f) ; 分界符
- (write-line "[脱硫废水系统 TLFS]^C^CTLFS" f) ; 点击执行^c^c后边的tlfs程序
- (write-line "[--]" f)
- (write-line "[查询参数 CXCS]^C^CCXCS" f)
- (write-line " [->设置图块]" f) ; 向右弹出
- (write-line " [可分解 KKFJ]^C^CKKFJ" f)
- (write-line " [<-不可分解 KBFJ]^C^CKBFJ" f) ; 弹完得回去
- (close f)
- (command ".menuload" fn)
- (if (menugroup "yzxf")
- (progn
- (setq i 1)
- (while (< i 24)
- (if (menucmd (strcat "p" (itoa i) ".1=?"))
- (setq i (1+ i))
- (progn
- (menucmd (strcat "p" (itoa i) "=+yzxf.pop1"))
- (setq i 25)
- )
- )
- )
- )
- )
- )
- )
- (setvar "filedia" 1)
- (princ)
- )
|