- (Defun C:DSS ()
- (setq bnum (getint "\nEntre com um numero: "))
- (setq inum (itoa bnum))
- (Setq PT1 (GetPoint "\nPonto de Desapropriação: " ))
- (Command "-INSERT""PONTO" PT1 "1""1""0" inum inum "")
- (while (/= nil PT1)
- (setq bnum (+ bnum 1))
- (setq inum (itoa bnum))
- (setq PT1 (getpoint "\nEscolha proximo ponto: "))
- (Command "-INSERT""PONTO" PT1 "1""1""0" inum inum "")
- )
- (setq ptlist (append ptlist (list PT1)))
- (setq file (open (getfiled "Output file" "" "" 5) "w"))
- (write-line (strcat (rtos (cadr PTLIST)) "," (rtos (caddr PTLIST))) file)
- (close file)
- (Princ)
- )
这是一个lisp,我想把每个“插入点坐标”,并把它放在一个“.csv”文件中,我将在excel中打开它并生成一个坐标表…但不起作用…我需要一些提示,我不想要解决方案。我想从我自己的。如果有人可以帮助我,我将非常感谢。
PS:对不起,我的英语不好 |