我不能让22x34去上班。我出错了;错误:无函数定义:22X34
但如果我把除了22x34的部分之外的所有内容都注释掉,它就可以了。
我肯定我错过了一些小东西。
- (defun c:iplot (/ psize)
- (initget 1 "11x17 PDF 22x34") ; [1 = no enter allowed]
- (setq psize (getkword (strcat "\nSelect Plot [11x17/PDF/22x34]:")))
- (cond
- ((= psize "11x17") (11x17))
- ((= psize "PDF") (PDF))
- ((= psize "22x34") (22x34))
- (t (princ "\nPlot cancelled"))
- )
- )
- (defun 11x17 ()
- (command "tilemode" "0")
- (command "-plot" "y" "" "DefaultPrinter.pc3" "11x17" "I"
- "L" "N" "W" "0,0" "34,22" "fit" "C" "Y" "CMS_b_black.ctb" "Y" "N" "N" "N" "N" "N" "Y")
- )
-
- (defun PDF (/ fnm)
- (if (setq fnm (getfiled "Specify Save Location" "" "pdf" 1))
- (progn
- (command "tilemode" "0")
- (command "-plot" "y" "" "Dwg To PDF.pc3" "ANSI expand D (34.00 x 22.00 Inches)" "I"
- "L" "N" "E" "1:1" "C" "Y" "CMS_d_black.ctb" "Y" "N" "N" "N" fnm "N" "Y")
- )
-
- (defun 22x34 ()
- (command "tilemode" "0")
- (command "-plot" "y" "" "HP7100-A.pc3" "D (landscape)" "I"
- "L" "N" "E" "1:1" "C" "Y" "CMS_d_black.ctb" "Y" "N" "N" "N" "N" "N" "Y")
- )
- )
- (princ)
- )
|