Lisp to export Multiple points coordinates to excel sheet

Lisp to export Multiple points coordinates to excel sheet

Anonymous
Not applicable
8,260 Views
3 Replies
Message 1 of 4

Lisp to export Multiple points coordinates to excel sheet

Anonymous
Not applicable
I need a Lisp to export Multiple points coordinates to excel sheet at once ,
Please help
0 Likes
Accepted solutions (2)
8,261 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution

Alternatively, you can create a CSV file that can be opened in Excel.

(defun C:C2X ()
 (setq List_Points (list (list 0 0) (list 1 1) (list 2 2)))
 (if (setq F1 (open "Text.csv" "w"))
  (foreach XY List_Points
   (write-line (strcat (rtos (car XY)) "," (rtos (cadr XY))) F1)
  )
 )
 (if F1 (close F1))
 (princ)
)

 

Message 3 of 4

Anonymous
Not applicable
Accepted solution

thank you so much

0 Likes
Message 4 of 4

Anonymous
Not applicable

I don't know how to make it please tell me and where I will make the thing in cad or excel... thank you and

God bless,

0 Likes