๐ ๋ชจ๋ ๋ผ์ธ ์ค ๊ฐ์ฅ ์์ X ์ขํ lisp acad: Google ๊ฒ์
www.google.com
๊ตฌ๊ธ์ ๋๋จํฉ๋๋ค. ์ํ๋ ์ฝ๋๋ฅผ ์ง์ฃผ๋ค์....
(defun KM:MinLineX ( _XLs / ss i ent sp ep min_x x1 x2)
(vl-load-com)
(setq min_x nil)
(setq ss (ssget "X" '((0 . "LINE"))))
(if ss
(progn
(setq i 0)
(repeat (sslength ss)
(setq ent (ssname ss i))
(setq sp (cdr (assoc 10 (entget ent))))
(setq ep (cdr (assoc 11 (entget ent))))
;; Extract Xp
(setq x1 (car sp))
(setq x2 (car ep))
;; Find min_x
(setq current_min (min x1 x2))
;; Update min
(if (or (not min_x) (< current_min min_x))
(setq min_x current_min)
)
(setq i (1+ i))
);repeat
);progn
(princ "\nCannot find Lines")
);if
(print min_x)
); defun๋ฐ์ํ
'autocad' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| ์คํ ๋ค๋, ๋์ ์คํ์ผ์ ์ ์ธํ ๋ชจ๋ ์คํ์ผ์ ํญ์ 0.7๋ก ๋ฐ๊พธ๋ ๋ฆฌ์ต (0) | 2026.07.14 |
|---|---|
| ๋๋ฉด ์ผ์ชฝ ์น์ ๋ณด์กฐ์ ์ ๊ธฐ์ค์ ์ ์ํ ์ค์ฌ์ ์ผ์ชฝ์ผ๋ก ์ ๋ ฌ (0) | 2026.07.10 |
| ํ๊ทธ ๋ธ๋ญ ์์ ์๋ ํด์น ๋ ์ด์ด ๋ฐ๊พธ๊ธฐ (0) | 2026.07.06 |
| ํ ์คํธ ๋ฌธ์์ด์ ^c ํ๊ธฐ (0) | 2026.07.01 |
| ๋ชจ๋ ํด์น ์ญ์ ํ๊ธฐ (0) | 2026.06.26 |