my environment is win xp,autocad 2004 se
I write a lsp script to plot dwg file quickly.
i make some change to make it can easy read.(as my cad is simple chinese,I ref something to change it to english)
the code is like this.
(command
"_.-plot"
"_Y" ;; Detailed plot configuration? [Yes/No]:
"" ;; Enter a layout name <Current-Layout>:
"Adobe PDF" ;; Enter an output device name:
"A4" ;; Enter paper size:
"_I" ;; Enter paper units [Inches/Millimeters]:
"_L" ;; Enter drawing orientation [Portrait/Landscape]:
"_N" ;; Plot upside down? [Yes/No]:
"_E" ;; Enter plot area [Display/Extents/Limits/View/Window]:
"_F" ;; Enter plot scale (Plotted Inches=Drawing Units) or [Fit] <1=1>:
"_C" ;; Enter plot offset (x,y) or [Center]:
"_Y" ;; Plot with plot styles? [Yes/No]:
"acad.ctb" ;; Enter plot style table name (enter . for none):
"_Y" ;; Plot with lineweights? [Yes/No]:
"_N" ;; Scale lineweights with plot scale? [Yes/No]:
"_N" ;; Plot paper space first? [Yes/No]:
"_N" ;; Hide paperspace objects? [Yes/No]:
"_N"
"_N" ;; Save changes to page setup [Yes/No]:
"_Y" ;; Proceed with plot [Yes/No]:
)
the code is ref to this
http://www.theswamp.org/index.php?topic=46869.msg519002#msg519002use this script
print error.dwg will print with error occur(something like unknown command)
while print is ok.dwg will print ok.
I have check the cad help.
it said:if the dwg is print by layout it will use the option: Plot paper space first?
while print by model,it will use other option.
I have no idea how to know if i use this plot script ,it (the dwg i try to print )will print by layout or by model
the two dwg file's tilemode are allways 1.
if i know it,I can make different script for this.
any help
attachment file plot.zip
comtain 3 files:
print error.dwg
print is ok.dwg
plot.lsp
_F