tyeelaw13
2005-10-19, 05:26 PM
Ok, i have a lisp routine that will run through all of the layouts and plot them in alphabetic order. When i try to use the same type of lisp for creating dwf's or pdf's it won't execute.
Here is the lisp that works:
(defun c:PlotLayouts ()
(setq lay_list (layoutlist)
lay_list_len (length lay_list)
lay_nth 0
)
(repeat lay_list_len
(command "layout" "set" (nth lay_nth lay_list))
(command "zoom" "e")
(plot2436)
(setq lay_nth (1+ lay_nth))
)
(princ)
)
(defun plot2436 ()
(command "-plot" "y" ""
"Oce 9400.pc3" "ARCH expand D (24.00 x 36.00 Inches)"
"i" "L" "N"
"W" "0.000000,0.000000"
"36.000000,24.000000" "1:1"
"C" "Y" "Pens - 24x36.ctb"
"Y" "N" "N"
"N" "N" "Y"
"Y"
)
)Here is the lisp that doesn't work. I get error: no function definition: PLOTDWF
(defun c:Pltdwf ()
(setq lay_list (layoutlist)
lay_list_len (length lay_list)
lay_nth 0
)
(repeat lay_list_len
(command "layout" "set" (nth lay_nth lay_list))
(command "zoom" "e")
(plotdwf)
(setq lay_nth (1+ lay_nth))
)
(princ)
)
(DEFUN C:plotDWF ()
(COMMAND "-plot" "y" ""
"dwf classic.pc3" "ARCH expand D (24.00 x 36.00 Inches)"
"i" "L" "N"
"W" "0.000000,0.000000"
"36.000000,24.000000" "1:1"
"C" "Y" "Pens - 24x36.ctb"
"Y" "N" "N"
"N" "~" "Y"
"Y"
)
)ANY SUGGESTIONS? I tried with my acrobat distiller too, and it did the same thing.
Thank you in advance
Here is the lisp that works:
(defun c:PlotLayouts ()
(setq lay_list (layoutlist)
lay_list_len (length lay_list)
lay_nth 0
)
(repeat lay_list_len
(command "layout" "set" (nth lay_nth lay_list))
(command "zoom" "e")
(plot2436)
(setq lay_nth (1+ lay_nth))
)
(princ)
)
(defun plot2436 ()
(command "-plot" "y" ""
"Oce 9400.pc3" "ARCH expand D (24.00 x 36.00 Inches)"
"i" "L" "N"
"W" "0.000000,0.000000"
"36.000000,24.000000" "1:1"
"C" "Y" "Pens - 24x36.ctb"
"Y" "N" "N"
"N" "N" "Y"
"Y"
)
)Here is the lisp that doesn't work. I get error: no function definition: PLOTDWF
(defun c:Pltdwf ()
(setq lay_list (layoutlist)
lay_list_len (length lay_list)
lay_nth 0
)
(repeat lay_list_len
(command "layout" "set" (nth lay_nth lay_list))
(command "zoom" "e")
(plotdwf)
(setq lay_nth (1+ lay_nth))
)
(princ)
)
(DEFUN C:plotDWF ()
(COMMAND "-plot" "y" ""
"dwf classic.pc3" "ARCH expand D (24.00 x 36.00 Inches)"
"i" "L" "N"
"W" "0.000000,0.000000"
"36.000000,24.000000" "1:1"
"C" "Y" "Pens - 24x36.ctb"
"Y" "N" "N"
"N" "~" "Y"
"Y"
)
)ANY SUGGESTIONS? I tried with my acrobat distiller too, and it did the same thing.
Thank you in advance