我微信只聊天,偶尔看朋友圈,能把其它的游戏,看一看之类的删了吗?
 - (defun @m:sort-by-y (ss-lst)
- (vl-sort ss-lst '(lambda (e1 e2)
- (> (cadr (entity:getdxf e1 10))
- (cadr (entity:getdxf e2 10))))))
- (defun @m:column-cal (/ cal-symble number-lst ss i% res-matrix)
- (initget 1 "+ - * /")
- (setq cal-symble (getkword "请输入运算符 (+ - * /): "))
- (setq number-lst '())
- (setq i% 0)
- (prompt (strcat "请选择第 " (itoa (1+ i%)) " 列:"))
- (while (setq ss (ssget '((0 . "text"))))
- (if number-lst
- (setq number-lst
- (append number-lst (list
- (@m:sort-by-y (ss:to-entlist ss)))))
- (setq number-lst (list (@m:sort-by-y (ss:to-entlist ss)))))
- (setq i% (1+ i%))
- (prompt (strcat "请选择第 " (itoa (1+ i%)) " 列:"))
- )
- (setq res-matrix '())
- (foreach matrix number-lst
- (if res-matrix
- (setq res-matrix
- (mapcar (read cal-symble) res-matrix
- (mapcar
- '(lambda (x) (atof (entity:getdxf x 1)))
- matrix)))
- (setq res-matrix
- (mapcar '(lambda (x) (atof (entity:getdxf x 1)))
- matrix)))
- )
- ;; 写图
- (mapcar '(lambda (x y)
- (entity:make-text
- (rtos x 2 2)
- (polar (entity:getdxf y 10) 0 1000)
- 250 0 0.8 0 13))
- res-matrix (last number-lst))
-
-
- )
|