1个回答
展开全部
(defun c:tes()
(setq la (getstring "\n请输入图层名: "))
(setq ss (ssget "X" (list (cons 0 "ARC") (cons 8 la))))
(setq fi (open "C:\\cir.txt" "w"))
(setq si 0)
(repeat (sslength ss)
(setq ct (cdr (assoc 10 (entget (ssname ss si)))))
(setq cx (rtos (car ct) 2 2))
(setq cy (rtos (cadr ct) 2 2))
(setq cz (rtos (caddr ct) 2 2))
(setq ct (strcat cx "," cy "," cz))
(write-line ct fi)
(setq si (1+ si))
)
(close fi)
)
(setq la (getstring "\n请输入图层名: "))
(setq ss (ssget "X" (list (cons 0 "ARC") (cons 8 la))))
(setq fi (open "C:\\cir.txt" "w"))
(setq si 0)
(repeat (sslength ss)
(setq ct (cdr (assoc 10 (entget (ssname ss si)))))
(setq cx (rtos (car ct) 2 2))
(setq cy (rtos (cadr ct) 2 2))
(setq cz (rtos (caddr ct) 2 2))
(setq ct (strcat cx "," cy "," cz))
(write-line ct fi)
(setq si (1+ si))
)
(close fi)
)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询