title: Export coordinates of Text entities
body: <p>I want to extract all the coordinates and the text itself of a specific layer into a CSV file. I am using the Mac version of AutoCAD 2018. 
  DATAEXTRACT seems to be not available on Mac and 
  -ATTEXT always writes: “0 records in extract file.” With the following template file: </p>
  
  <pre><code>NAME C008000
  X N007001
  Y N007001
  Z N007001
  </code></pre>
  
  <p>I’ve tried it with lisp as well, but I only got until here:</p>
  
  <pre><code>(defun c:asdf () 
      (setq coordinates (assoc 10 (entget (entlast)))))
      (alert coordinates)
  )
  </code></pre>
  
  <p>Any ideas?
  Thanks in advance!</p>