本帖最后由 xyp1964 于 2019-8-19 22:50 编辑
 - (defun c:tt ()
- ;; tt(数据四边形)
- (xyp-StartSc)
- (setq lst (xyp-xls2list "11.xlsx")
- p1 '(0 0)
- )
- (foreach a (cdr lst)
- (setq bh (nth 1 a)
- a (mapcar 'distof (cddr a))
- s1 (xyp-Square p1 (nth 0 a) (nth 1 a) (nth 2 a) (nth 3 a) (nth 4 a) nil t)
- )
- (entdel s1)
- (setq s2 (entlast))
- (entdel s1)
- (setq s3 (xyp-Text 5 (xyp-cpt s2) bh)
- p1 (xyp-Pt2X (xyp-9pt s2 3) 500)
- )
- )
- (xyp-End)
- )
|