 - ;; 伪源码需要e派工具箱(XCAD)的支持
- (defun c:tt ()
- (CMDLA0)
- (setq fn (getfiled "选择数据文件" "" "xls" 16)
- lst (xyp-xls2list fn)
- lst (cdr lst)
- lst (mapcar '(lambda (x) (list (car x) (cadr x) (caddr x))) lst)
- )
- (foreach a lst
- (setq t1 (car a)
- x (cadr a)
- y (caddr a)
- )
- (if (and (/= t1 "") (/= x "") (/= y ""))
- (progn
- (setq p1 (list (distof x) (distof y))
- p2 (xyp-get-Pt2Y p1 -300)
- )
- (xyp-InsertBlock p1 "ABC" 1 1 1 0)
- (xyp-Text 5 p2 (strcat "NO." t1))
- )
- )
- )
- (CMDLA1)
- )
|