[AutoCAD] AJUDA AUTO CAD - PLOTAGEM
A palavra batch é usada em informática para se referir àqueles programas que fazem alguma rotina em lote, vários de uma vez, automaticamente.
batch 1 fornada. 2 partida, porção, punhado, lote, quantidade de alguma coisa feita de uma vez. 3 grupo, série, turma, bando, tropa. a batch of letters uma pilha de cartas. a batch of trippers um grupo de excursionistas.
Eu mandei bucas no Help do autocad 2000 e a explicação para criar batch plot:
The following sample plot.bat file shows some of the functions that can be included in a batch file. This batch file determines the destination hard copy device, submits the print job via the operating system COPY command, and then deletes the temporary plot file created by AutoCAD. This batch file requires two parameters to be passed from AutoCAD, %s and %c, which are referenced internally in the batch program as %1 and %2, respectively. The imaginary devices in this example are attached to the local workstation and two different network printer servers. See the following table for an explanation of the device names and connections. Note that the order in which parameters are passed to the AutoSpool executable file determines how the variable is referenced in the program or batch file. For example, the first variable becomes %1 and so forth.
Device names and connections
Description Server Network share name AutoCAD configuration name Local laser printer my_laser Network-attached plotter milana \milanahp755cm hp755cm Network-attached laser printer kilo \kilolaser net_laser
Rem PLOT.BAT @echo off
Rem determine the destination if %2 == my_laser goto PlotA if %2 == hp755cm goto PlotB if %2 == net_laser goto PlotC
Rem trap for undefined devices echo *******************Warning********************** echo %2 is not defined to the Plot Script, PLOT.BAT echo The plot job has been canceled. echo ************************************************ pause goto END
Rem send the job
lotA copy %1 /b LPT1 goto END
lotB copy %1 /b \milanahp755cm goto END
lotC copy %1 /b \kilolaser goto END
Rem clean up and exit :END erase %1
exit
NOTE Device names are case-sensitive: make sure that the name configured for the device in AutoCAD exactly matches the name in your batch program.
Att.,
João Ricardo Spagnollo
Category: autocad-facile
























