- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to find a Lisp Routine that will allow me to select two Cogo Points and list the difference in elevation (z) in Inches with a Multileader. I have seen other posts on here about doing this but none seem to work for me. I have tried to Frankenstein a Lisp Routine from other posts but I do not know coding very well (see below). Any help on this matter will be greatly appreciated.
(defun c:ped ()
(setq Pt1 (ssget '((0 . "AECC_COGO_POINT"))))
(setq pt2 (ssget '((0 . "AECC_COGO_POINT"))))
(setq E1 (nth 0 Pt1))
(setq N1 (nth 1 Pt1))
(setq Z1 (nth 2 Pt1))
(setq E2 (nth 0 pt2))
(setq N2 (nth 1 pt2))
(setq Z2 (nth 2 pt2))
(princ (- z1 z2))
(command "_TEXT" pause "0.06" "0" (rtos (- z1 z2)))
;finish cleanly
);end of defun
High Definition Survey Manager
C3D 2024
Dell Precision 3660
Windows 11 Pro
128GB RAM
Solved! Go to Solution.