(defun KM:getCOORD ( / pt th coordpt txtdxf )
(setq pt (getpoint "pick point:"))
(setq th (* (getvar "DIMSCALE") 1.0))
(setq coordpt (strcat "(" (rtos (car pt) 2 4) " " (rtos (cadr pt) 2 4) ")"))
(setq txtdxf (list (cons 0 "TEXT") (cons 10 pt) (cons 1 coordpt) (cons 40 th)))
(entmake txtdxf)
(princ)
)
(defun c:getp ( / )
(KM:getCOORD)
)
(defun KM:MKPTS ( / )
(setq pts nil)
(while (setq pts (append pts (list (getpoint "Pick Point:"))))
(princ))
)
KM:MKPTS ;; Make List of Coordinates of Points
반응형
'autocad' 카테고리의 다른 글
| Extract Attributes (0) | 2026.06.23 |
|---|---|
| PPT의 벡터 선을 캐드로 가져오기 (0) | 2026.06.15 |
| Deleting a selection set (0) | 2026.05.27 |
| Custom Message Box (0) | 2026.05.13 |
| Unmask Mtexts (0) | 2026.05.12 |