Message 1 of 4

Not applicable
05-24-2018
03:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a dwg file in which there are aparanetly some points (see attachment). But when I want to get the coordinates of this points using the following lisp, the answer comes that no object is selected.
(defun c:lixt ( / i s ) (if (setq s (ssget '((0 . "POINT")))) (repeat (setq i (sslength s)) (princ (apply 'strcat (mapcar 'strcat '("\n\tX=\t" "\tY=\t" "\tZ=\t") (mapcar 'rtos (cdr (assoc 10 (entget (ssname s (setq i (1- i))))))) ) ) ) ) ) (princ) )
I appreciate any recommandation.
Solved! Go to Solution.