问题已解决,不好意思
- (defun C:GG(/)
- ;; 批量给字符串变量赋值
- (setq n 0)
- (repeat 8
- (setq n (1+ n))
- (set (read (strcat "lst_" (itoa n))) (strcat "a_" (itoa n)))
- )
- ;; 批量获取变量值
- (setq n 0)
- (repeat 8
- (setq n (1+ n))
- (setq str(vl-symbol-value (read (strcat "lst_" (itoa n)))))
- (princ "\n")
- (princ str)
- )
- (princ)
- )
|