 - (defun c:xx(/ gd gd1 gd2 po pt)
- (setq gd1 '("T1" "525" "635" ))
- (setq gd2 '("T10" "44564" "63555"))
- (setq gd (append gd1 gd2))
- (setq sb (length gd))
- (setq pt (getpoint "\n->统计数据报表左上插入点:"))
- (setq po (XD::Pnts:Matrix pt sb 3 5 5))
- (foreach x gd
- (entmake (list
- '(0 . "TEXT")
- (cons 1 x)
- (cons 11 po)
- )
- )
- (setq po (polar po *x-pi15* 4.26))
- )
- )
- (defun XD::Pnts:Matrix (basepnt rows cols rowgap colgap / j rowpts pts)
- (repeat rows
- (setq j -1)
- (setq rowpts nil)
- (setq basepnt
- (polar basepnt (- (/ pi 2.0)) rowgap)
- )
- (repeat cols
- (setq
- rowpts (cons (polar basepnt 0.0 (* colgap (setq j (1+ j))))
- rowpts
- )
- )
- )
- (setq pts (cons (reverse rowpts) pts))
- )
- (reverse pts)
- )
|