(defun c:INS-PIN (/ path dwglist pos_x pos_y dwfile fn pt n1)
(setq path (getvar "dwgprefix"))
(setq dwglist (vl-directory-files path "*.dwg" ))
(setq n1 0)
(setq pos_x 0 pos_y 0)
(repeat (length dwglist)
(setq dwfile (nth n1 dwglist))
(setq fn (strcat "*" path dwfile))
(setq pt (list pos_x pos_y))
(command "_INSERT" fn "_non" pt 1 0)
;; 297: ºÒ·¯¿Ãµµ¸éÀÌ A4°¡·Î ±×·ÁÁø °æ¿ì
;; 420: ºÒ·¯¿Ã µµ¸éÀÌ A3¶ó°í ±×·ÁÁø °æ¿ì
(setq pos_x (+ pos_x 297)) ;;¿ëÁöÅ©±âA4
(setq n1 (1+ n1))
)
(princ)
)
;; À§ ³»¿ëÀ» C:/AutoCAM/PcamUserSetup.Lsp ¿¡ Ãß°¡Çؼ »ç¿ëÇØ º¸¼¼¿ä (¸í·É:INS-PIN)
;; ±×¸®°í ºÒ·¯µéÀÏ µµ¸é¸¸ Æú´õ¿¡ ÀúÀåÇϼ¼¿ä.