±¸°£ Array¸¦ ÇØÁÝ´Ï´Ù. Program name : ARD.LSP
AutoCADÀÇ Array¸í·ÉÀº x¹æÇâ°¹¼ö, y¹æÇâ°¹¼ö, x¹æÇâ°£°Ý, y¹æÇâ°£°Ý µî ÀԷ»çÇ×ÀÌ ¸¹±â ¶§¹®¿¡ ¹èµçµµÀÇ Á¡Ã¶±Ù°°ÀÌ ÇѹæÇâÀ¸·Î arrayÇÏ´Â °æ¿ì¿¡´Â ºÒÆíÇÒ ¼ö ÀÖ½À´Ï´Ù. ÀÌ ÇÁ·Î±×·¥Àº ±¸°£°ú °£°ÝÀ» Á¤ÇØÁÖ¸é °³¼ö¸¦ ±¸ÇØ arrayÇØÁֱ⠶§¹®¿¡ ¹Ì¸® °è»ê±â¸¦ µÎµå·Á °³¼ö¸¦ ±¸ÇÒ ÇÊ¿ä°¡ ¾ø½À ´Ï´Ù. ´Ü x¹æÇâ°ú y¹æÇ⸸ °¡´ÉÇÕ´Ï´Ù.
»ç¿ë¿¹ Select objects: {p1} 1 found [arrayÇÒ ¿£Æ¼Æ¼ ¼±ÅÃ] Select objects: [¼±ÅÃÁ¾·á] Pick start point: _cen of {p2} [½ÃÀÛÁ¡ ÀÔ·Â] Pick end point: {p3} [³¡Á¡ÀÔ·Â] ÇÁ·Î±×·¥ÀÌ x,y±æÀ̸¦ ÃøÁ¤Çؼ ±äÂʹæ ÇâÀ¸·Î array¹æÇâÀ» Á¤ÇÔ Distance = 4575.84 [ÃøÁ¤ÇÑ °Å¸®¸¦ »ç¿ëÀÚ¿¡°Ô º¸¿©ÁÜ Array distance: 600 [array °£°Ý ÀÔ·Â] Remainder = 375.836 [array¸¦ ½ÇÇàÇÏ°í ³²Àº °Å¸®¸¦ Ç¥½ÃÇØÁÜ]