马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - ;;; ================================================================
- (defun read->biao (str fgf / biao s1 i)
- (setq biao nil)
- (setq i (vl-string-search fgf str))
- (while i
- (setq s1 (substr str 1 i))
- (setq str (substr str (+ 2 i)))
- (setq biao (append
- biao
- (list s1)
- )
- )
- (setq i (vl-string-search fgf str))
- )
- (append
- biao
- (list str)
- )
- )
- ;;; ======================================
- (defun thh (pt h lj hj /)
- (setq ff "c:/gj-dat.txt")
- (setq f (open ff "r"))
- (setq ptx (car pt))
- (setq pty (cadr pt))
- (setq j 1)
- (while (setq j (1+ j))
- (setq aa (read-line f))
- (setq aa1 (read->biao aa " "))
- (setq n (length aa1))
- (setq i 0)
- (setq ptyi (- pty (* j hj)))
- (while (< i n)
- (setq ptxi (+ ptx (* i lj)))
- (setq pti (list ptxi ptyi))
- (setq test (nth i aa1))
- (command "text" "j" "c" pti h "0" test)
- (setq i (1+ i))
- ) ; (setq j (1+ j))
- )
- (close f)
- )
- ;;; ==============================================
- (defun c:mxb ()
- (setq pt (getpoint "揰嵗昗"))
- (setq h (getdist "暥帤崅"))
- (setq hj (getdist "峴嫍棧"))
- (setq lj (getdist "楍嫍棧"))
- (thh pt h lj hj)
- )
- ;;; ======================================================================
|