Export Elevation Profile From Google Earth To Autocad ((install)) 〈Updated〉

Save this as pts2pline.lsp and load via APPLOAD :

X, Y, Z Easting, Northing, Elevation Remove header rows. Example content: export elevation profile from google earth to autocad

(defun c:pts2pline () (setq ss (ssget '((0 . "POINT")))) (setq i 0 plist nil) (repeat (sslength ss) (setq ent (ssname ss i) pt (cdr (assoc 10 (entget ent))) plist (cons pt plist)) (setq i (1+ i))) (setq plist (reverse plist)) (command "3DPOLY") (foreach p plist (command p)) (command "")) Then type PTS2PLINE and select all points. Use a SCR script file. Create a .scr file with: Save this as pts2pline