david.brissenden
2009-08-11, 03:36 PM
Can someone please tell me where I am going wrong with this printing routine as it is driving me around the bend now...
All it is supposed to do is print the screen on an A4 piece of paper!!
(defun c:PrintA4 () (command "plot" "y" "Model" "\\\\dbr01\\DO LaserJet 8000" "ISO A4 (210.00 x 297.00 MM)" "Millimeters" "L" "N" "E" "F" "C" "Y" "monochrome.ctb" "Y" "A" "N" "N" "Y"))
Basically the problem lies around the papersize / units area:
Enter paper size or [?] <A4>: ISO A4 (210.00 x 297.00 MM)
Command: Millimeters Unknown command "MILLIMETERS". Press F1 for help.
Command: L Unknown command "L". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: E Unknown command "E". Press F1 for help.
Command: F Unknown command "F". Press F1 for help.
Command: C Unknown command "C". Press F1 for help. Command: Y Unknown command "Y". Press F1 for help.
Command: monochrome.ctb Unknown command "MONOCHROME.CTB". Press F1 for help.
Command: Y Unknown command "Y". Press F1 for help.
Command: A Unknown command "A". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: Y Unknown command "Y". Press F1 for help.
Command: nil
I have tried using full names instead of abbreviations, for example "millimeters" instead of "m", "Fit" instead of "F" etc...
The biggest frustration is that it all works if I type in everything manually in Acad just not in lisp.
Any help is appreciated.
Thanks
All it is supposed to do is print the screen on an A4 piece of paper!!
(defun c:PrintA4 () (command "plot" "y" "Model" "\\\\dbr01\\DO LaserJet 8000" "ISO A4 (210.00 x 297.00 MM)" "Millimeters" "L" "N" "E" "F" "C" "Y" "monochrome.ctb" "Y" "A" "N" "N" "Y"))
Basically the problem lies around the papersize / units area:
Enter paper size or [?] <A4>: ISO A4 (210.00 x 297.00 MM)
Command: Millimeters Unknown command "MILLIMETERS". Press F1 for help.
Command: L Unknown command "L". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: E Unknown command "E". Press F1 for help.
Command: F Unknown command "F". Press F1 for help.
Command: C Unknown command "C". Press F1 for help. Command: Y Unknown command "Y". Press F1 for help.
Command: monochrome.ctb Unknown command "MONOCHROME.CTB". Press F1 for help.
Command: Y Unknown command "Y". Press F1 for help.
Command: A Unknown command "A". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: N Unknown command "N". Press F1 for help.
Command: Y Unknown command "Y". Press F1 for help.
Command: nil
I have tried using full names instead of abbreviations, for example "millimeters" instead of "m", "Fit" instead of "F" etc...
The biggest frustration is that it all works if I type in everything manually in Acad just not in lisp.
Any help is appreciated.
Thanks