;;====================================================================
;; Æ÷ÀÎÆ® ã±â
;; www.pointcam.co.kr
;;====================================================================
(defun c:SeekPoint ( / p1 p2 ssg n)
(command "_ucs" "w")
(setq p1 (getpoint "\n>> Æ÷ÀÎÆ® ã±â : ù¹ø° ÄÚ³ÊÁöÁ¤: "))
(setq p2 (getcorner p1 "\n>> Æ÷ÀÎÆ® ã±â : µÎ¹ø° ÄÚ³ÊÁöÁ¤: "))
(setq ssg (ssget "c" p1 p2 (list (cons 0 "POINT"))))
(if ssg (progn
(setq n 0)
(repeat (sslength ssg)
(command "_line" "_non" p1 "_non" (cdr (assoc 10 (entget (ssname ssg n)))) "")
(command "_change" (entlast) "" "p" "c" 6 "")
(setq n (1+ n))
)
(princ "\n>> Æ÷ÀÎÆ® ¼ö : ")(princ n)
) (progn
(alert "POINT°¡ ¾ø½À´Ï´Ù.")
))
(princ "\n>> PointCAM....^_^...")
(princ)
)