[ ÀÎÅÚ¸®Ä³µå¿ë Æ÷ÀÎƮķ - ¹¯°í´äÇϱâ ]
°Ô½Ã¹° 6°Ç
   
<GSTARCAD> PP Àû¿ëÀÌ ¾È µÇ¾î¿ä.
±Û¾´ÀÌ : ¿¡½ºÅØ ³¯Â¥ : 2011-12-15 (¸ñ) 19:40 Á¶È¸ : 2236

;; Á¡Âï°í ¶óÀÎÁö¿ì±â
(defun c:PP( / ucsorg p1 ssg)
  (setq ucsorg (getvar "ucsorg"))
  (setq p1 (getpoint "\n-\n>> Æ÷ÀÎÆ® À§Ä¡ÁöÁ¤: "))
  (setq ssg (ssget "c" (wpt2upt p1) (wpt2upt p1) (list (cons 0 "LINE"))))
  (if ssg (command "_erase" ssg "")) ;;¼±ÀÌ ÀÖÀ¸¸é »èÁ¦
  (command "_point" "_non" (wpt2upt p1))
  (princ)
)


ÀÌ°Ô Àû¿ëÀÌ ¾È µÇ³×¿ä.. À½..


°ü¸®ÀÚ 2011-12-17 (Åä) 13:27

GSTAR ¿¡´Â wpt2upt ÇÔ¼ö°¡ ¾ø¾î¼­ ¾ÈµË´Ï´Ù.

;; Á¡Âï°í ¶óÀÎÁö¿ì±â
(defun c:PP( / ucsorg p1 ssg)
  (command "_ucs" "_w")
  (setq p1 (getpoint "\n-\n>> Æ÷ÀÎÆ® À§Ä¡ÁöÁ¤: "))
  (setq ssg (ssget "c" p1 p1 (list (cons 0 "LINE"))))
  (if ssg (command "_erase" ssg "")) ;;¼±ÀÌ ÀÖÀ¸¸é »èÁ¦
  (command "_point" "_non" p1)
  (princ)
)

;;À§ ó·³ ¼öÁ¤ÇÏ¸é µË´Ï´Ù.

¿¡½ºÅØ 2011-12-17 (Åä) 13:34
¿ÀȪ.
°¨»çÇÕ´Ï´Ù.
À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.