;; C:/AutoCAM/pcamplot.lsp ÆÄÀϳ»¿ë
(setq plotname "Samsung CLP-320 Series") ;; »ç¿ëÀÚ ¼³Á¤ºÎºÐ (ÄÄÇ»Å͸¶´Ù ´Ù¸¨´Ï´Ù)
;;==============================================================================
;; Èæ¹éÃâ·Â : ¿ëÁö¿¡ ¸Â°Ô
;;==============================================================================
(defun c:PcamPlot ( / p1 p2 plotname papersiz lpmode)
(setq papersiz "")
(setq p1 (getpoint "\n ÇÁ¸°Æ® ¹üÀ§ ÁöÁ¤1:"))
(setq p2 (getcorner p1 "\n ¹üÀ§ ÁöÁ¤2:"))
(if (> (abs (- (car p1)(car p2))) (abs (- (cadr p1)(cadr p2))))
(setq lpmode "L")
(setq lpmode "P")
)
(if (> (substr (getvar "acadver") 1 2) "15")
;; 2004, 2005, 2006, 2007
(command "-plot"
"Y" ;; »ó¼¼ÇÑ Ç®·Ô±¸¼º
"" ;; ¹èÄ¡ À̸§ ÀÔ·Â
plotname
papersiz ;; ¿¡·¯³ª¸é ""À¸·Î º¯°æ
"M" ;; M=mm I=inch
lpmode ;; L=°¡·Î P=¼¼·Î
"N" ;; À§ ¾Æ·¡·Î µÚÁý¾î Ç÷Ô
"W" ;; W=À©µµ¿ì D=ȸéÇ¥½Ã
p1
p2
"F" ;; ÇÃ·Ô Ãàô ÀÔ·Â (Ãâ·Â ¹Ð¸®¹ÌÅÍ=µµ¸é ´ÜÀ§)¶Ç´Â [¸ÂÃã(F)] <¸ÂÃã>:
"C" ;; ÇÃ·Ô °£°Ý¶ç¿ì±â ÀÔ·Â(x,y) ¶Ç´Â [Áß½É(C)] <0.00,0.00>:
"Y" ;; ÇÃ·Ô ½ºÅ¸ÀÏ·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"MONOCHROME.CTB" ;; ÇÃ·Ô ½ºÅ¸ÀÏ Å×À̺í À̸§ ÀÔ·Â ¶Ç´Â [?] (¾øÀ¸¸é . ÀÔ·Â) <>:
"Y" ;; ¼±°¡ÁßÄ¡·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"A" ;; À½¿µ ÇÃ·Ô ¼³Á¤ ÀÔ·Â [Ç¥½ÃµÇ´Â ´ë·Î(A)/¿ÍÀ̾îÇÁ·¹ÀÓ(W)/¼û±è(H)/ºä ½ºÅ¸ÀÏ(V)/·»´õ(R)] <Ç¥½ÃµÇ´Â ´ë·Î>:
"N" ;;ÇÃ·Ô Ãâ·ÂÀ» ÆÄÀÏ·Î ÇϽðڽÀ´Ï±î? [¿¹(Y)/¾Æ´Ï¿À(N)] <N>:
"N" ;; ÆäÀÌÁö ¼³Á¤¿¡ ´ëÇÑ º¯°æ »çÇ× ÀúÀå [¿¹(Y)/¾Æ´Ï¿À(N)]? <N>
"Y" ;;Ç÷ÔÀ» ÁøÇàÇմϱî [¿¹(Y)/¾Æ´Ï¿À(N)] <Y>:
)
)
(princ)
)
;;=============================================================================
;; Èæ¹é 1:1 Ãâ·Â
;;=============================================================================
(defun c:PcamPlot1 ( / p1 p2 plotname papersiz lpmode)
(setq papersiz "")
(setq p1 (getpoint "\n ÇÁ¸°Æ® ¹üÀ§ ÁöÁ¤1:"))
(setq p2 (getcorner p1 "\n ¹üÀ§ ÁöÁ¤2:"))
(if (> (abs (- (car p1)(car p2))) (abs (- (cadr p1)(cadr p2))))
(setq lpmode "L")
(setq lpmode "P")
)
(if (> (substr (getvar "acadver") 1 2) "15")
;; 2004, 2005, 2006, 2007
(command "-plot"
"Y" ;; »ó¼¼ÇÑ Ç®·Ô±¸¼º
"" ;; ¹èÄ¡ À̸§ ÀÔ·Â
plotname
papersiz ;; ¿¡·¯³ª¸é ""À¸·Î º¯°æ
"M" ;; M=mm I=inch
lpmode ;; L=°¡·Î P=¼¼·Î
"N" ;; À§ ¾Æ·¡·Î µÚÁý¾î Ç÷Ô
"W" ;; W=À©µµ¿ì D=ȸéÇ¥½Ã
p1
p2
"1:1" ;; ÇÃ·Ô Ãàô ÀÔ·Â (Ãâ·Â ¹Ð¸®¹ÌÅÍ=µµ¸é ´ÜÀ§)¶Ç´Â [¸ÂÃã(F)] <¸ÂÃã>:
"C" ;; ÇÃ·Ô °£°Ý¶ç¿ì±â ÀÔ·Â(x,y) ¶Ç´Â [Áß½É(C)] <0.00,0.00>:
"Y" ;; ÇÃ·Ô ½ºÅ¸ÀÏ·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"MONOCHROME.CTB" ;; ÇÃ·Ô ½ºÅ¸ÀÏ Å×À̺í À̸§ ÀÔ·Â ¶Ç´Â [?] (¾øÀ¸¸é . ÀÔ·Â) <>:
"Y" ;; ¼±°¡ÁßÄ¡·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"A" ;; À½¿µ ÇÃ·Ô ¼³Á¤ ÀÔ·Â [Ç¥½ÃµÇ´Â ´ë·Î(A)/¿ÍÀ̾îÇÁ·¹ÀÓ(W)/¼û±è(H)/ºä ½ºÅ¸ÀÏ(V)/·»´õ(R)] <Ç¥½ÃµÇ´Â ´ë·Î>:
"N" ;;ÇÃ·Ô Ãâ·ÂÀ» ÆÄÀÏ·Î ÇϽðڽÀ´Ï±î? [¿¹(Y)/¾Æ´Ï¿À(N)] <N>:
"N" ;; ÆäÀÌÁö ¼³Á¤¿¡ ´ëÇÑ º¯°æ »çÇ× ÀúÀå [¿¹(Y)/¾Æ´Ï¿À(N)]? <N>
"Y" ;;Ç÷ÔÀ» ÁøÇàÇմϱî [¿¹(Y)/¾Æ´Ï¿À(N)] <Y>:
)
)
(princ)
)
;;=============================================================================
;; Ä÷¯Ãâ·Â : ¿ëÁö¿¡ ¸Â°Ô
;;=============================================================================
(defun c:PcamPlotC ( / p1 p2 plotname papersiz lpmode)
(setq papersiz "")
(setq p1 (getpoint "\n ÇÁ¸°Æ® ¹üÀ§ ÁöÁ¤1:"))
(setq p2 (getcorner p1 "\n ¹üÀ§ ÁöÁ¤2:"))
(if (> (abs (- (car p1)(car p2))) (abs (- (cadr p1)(cadr p2))))
(setq lpmode "L")
(setq lpmode "P")
)
(if (> (substr (getvar "acadver") 1 2) "15")
;; 2004, 2005, 2006, 2007
(command "-plot"
"Y" ;; »ó¼¼ÇÑ Ç®·Ô±¸¼º
"" ;; ¹èÄ¡ À̸§ ÀÔ·Â
plotname
papersiz ;; ¿¡·¯³ª¸é ""À¸·Î º¯°æ
"M" ;; M=mm I=inch
lpmode ;; L=°¡·Î P=¼¼·Î
"N" ;; À§ ¾Æ·¡·Î µÚÁý¾î Ç÷Ô
"W" ;; W=À©µµ¿ì D=ȸéÇ¥½Ã
p1
p2
"F" ;; ÇÃ·Ô Ãàô ÀÔ·Â (Ãâ·Â ¹Ð¸®¹ÌÅÍ=µµ¸é ´ÜÀ§)¶Ç´Â [¸ÂÃã(F)] <¸ÂÃã>:
"C" ;; ÇÃ·Ô °£°Ý¶ç¿ì±â ÀÔ·Â(x,y) ¶Ç´Â [Áß½É(C)] <0.00,0.00>:
"Y" ;; ÇÃ·Ô ½ºÅ¸ÀÏ·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"ACAD.CTB" ;; ÇÃ·Ô ½ºÅ¸ÀÏ Å×À̺í À̸§ ÀÔ·Â ¶Ç´Â [?] (¾øÀ¸¸é . ÀÔ·Â) <>:
"Y" ;; ¼±°¡ÁßÄ¡·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"A" ;; À½¿µ ÇÃ·Ô ¼³Á¤ ÀÔ·Â [Ç¥½ÃµÇ´Â ´ë·Î(A)/¿ÍÀ̾îÇÁ·¹ÀÓ(W)/¼û±è(H)/ºä ½ºÅ¸ÀÏ(V)/·»´õ(R)] <Ç¥½ÃµÇ´Â ´ë·Î>:
"N" ;;ÇÃ·Ô Ãâ·ÂÀ» ÆÄÀÏ·Î ÇϽðڽÀ´Ï±î? [¿¹(Y)/¾Æ´Ï¿À(N)] <N>:
"N" ;; ÆäÀÌÁö ¼³Á¤¿¡ ´ëÇÑ º¯°æ »çÇ× ÀúÀå [¿¹(Y)/¾Æ´Ï¿À(N)]? <N>
"Y" ;;Ç÷ÔÀ» ÁøÇàÇմϱî [¿¹(Y)/¾Æ´Ï¿À(N)] <Y>:
)
)
(princ)
)
;;==============================================================================
;; Ä÷¯Ãâ·Â 1:1
;;==============================================================================
(defun c:PcamPlotC1 ( / p1 p2 plotname papersiz lpmode)
(setq papersiz "")
(setq p1 (getpoint "\n ÇÁ¸°Æ® ¹üÀ§ ÁöÁ¤1:"))
(setq p2 (getcorner p1 "\n ¹üÀ§ ÁöÁ¤2:"))
(if (> (abs (- (car p1)(car p2))) (abs (- (cadr p1)(cadr p2))))
(setq lpmode "L")
(setq lpmode "P")
)
(if (> (substr (getvar "acadver") 1 2) "15")
;; 2004, 2005, 2006, 2007
(command "-plot"
"Y" ;; »ó¼¼ÇÑ Ç®·Ô±¸¼º
"" ;; ¹èÄ¡ À̸§ ÀÔ·Â
plotname
papersiz ;; ¿¡·¯³ª¸é ""À¸·Î º¯°æ
"M" ;; M=mm I=inch
lpmode ;; L=°¡·Î P=¼¼·Î
"N" ;; À§ ¾Æ·¡·Î µÚÁý¾î Ç÷Ô
"W" ;; W=À©µµ¿ì D=ȸéÇ¥½Ã
p1
p2
"1:1" ;; ÇÃ·Ô Ãàô ÀÔ·Â (Ãâ·Â ¹Ð¸®¹ÌÅÍ=µµ¸é ´ÜÀ§)¶Ç´Â [¸ÂÃã(F)] <¸ÂÃã>:
"C" ;; ÇÃ·Ô °£°Ý¶ç¿ì±â ÀÔ·Â(x,y) ¶Ç´Â [Áß½É(C)] <0.00,0.00>:
"Y" ;; ÇÃ·Ô ½ºÅ¸ÀÏ·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"ACAD.CTB" ;; ÇÃ·Ô ½ºÅ¸ÀÏ Å×À̺í À̸§ ÀÔ·Â ¶Ç´Â [?] (¾øÀ¸¸é . ÀÔ·Â) <>:
"Y" ;; ¼±°¡ÁßÄ¡·Î Ç÷Ô? [¿¹(Y)/¾Æ´Ï¿À(N)] <¿¹>:
"A" ;; À½¿µ ÇÃ·Ô ¼³Á¤ ÀÔ·Â [Ç¥½ÃµÇ´Â ´ë·Î(A)/¿ÍÀ̾îÇÁ·¹ÀÓ(W)/¼û±è(H)/ºä ½ºÅ¸ÀÏ(V)/·»´õ(R)] <Ç¥½ÃµÇ´Â ´ë·Î>:
"N" ;;ÇÃ·Ô Ãâ·ÂÀ» ÆÄÀÏ·Î ÇϽðڽÀ´Ï±î? [¿¹(Y)/¾Æ´Ï¿À(N)] <N>:
"N" ;; ÆäÀÌÁö ¼³Á¤¿¡ ´ëÇÑ º¯°æ »çÇ× ÀúÀå [¿¹(Y)/¾Æ´Ï¿À(N)]? <N>
"Y" ;;Ç÷ÔÀ» ÁøÇàÇմϱî [¿¹(Y)/¾Æ´Ï¿À(N)] <Y>:
)
)
(princ)
)