oos Posted June 21, 2012 Posted June 21, 2012 our requirement to make e-book while plotting for project simultaneouly it make pdf Quote
MSasu Posted June 21, 2012 Posted June 21, 2012 You can build a script to call twice the plot command, once to a phisical printer and next to a virtual one that will produce the PDF. Can call it later by associating it with a toolbar button: (command "_SCRIPT" "C:\\2xPrint.scr") Quote
oos Posted June 21, 2012 Author Posted June 21, 2012 You can build a script to call twice the plot command, once to a phisical printer and next to a virtual one that will produce the PDF. please send that script Quote
MSasu Posted June 21, 2012 Posted June 21, 2012 You can build it by yourself calling the prompt version of command (-PLOT) and writing down the answers. Next, add those into a text file, one answer per line: _PLOT _Y "Layout1" ... Quote
oos Posted June 21, 2012 Author Posted June 21, 2012 please send that script we have select plotting, color or monochorme, scale after that it go to plot on that time it make pdf Quote
oos Posted June 21, 2012 Author Posted June 21, 2012 this was half of the solution, i need in details Quote
MSasu Posted June 21, 2012 Posted June 21, 2012 Just run the prompt version of command and where in doubt about options (plotter name, file format, CTB) just input "?" to see the list of available options and their syntax. When copy the answer to the script, skip those "?" parts. Quote
Pablo Ferral Posted June 21, 2012 Posted June 21, 2012 Or use the publish command with pagesetups. Set all your drawings to use a 'plot to paper' pagesetup - then load the same drawings in again and set them to use a 'plot to PDF' page set up. Quote
BIGAL Posted June 22, 2012 Posted June 22, 2012 Like Msasu we have plot to pdf tiff a3 A1 etc as lisps so would just take two lisps and add together to make a new one called plotpdfplotter.lsp search here lots of example code heres one http://www.cadtutor.net/forum/showthread.php?69132-Printing-LISP-Help...&highlight=Printing-LISP Quote
irneb Posted June 22, 2012 Posted June 22, 2012 this was half of the solution, i need in detailsSeeing as you're on 2004, the Publish only half works for you - it would only be able to "Print to PDF" using an external PDFWriter driver. Only recently was the Publish to PDF introduced, though I think 2004's Publish has a publish to DWF though. What I did previously was to use Publish to DWF, then use DWF Viewer's batch plot to PDFCreator - which would then save the PDF with the same name as the DWF. As for the Script: a script file is a normal text file containing exactly the keys you'd have typed to perform the actions manually. I.e. try using the commands in autocad by prefixing them with a minus sign to force the non-dialog versions. Then see what is asked on the command line and what you need to type to get your end result to perform. Then after you've got one DWG/Layout working, press F2 to see the history of what you typed. Create a SCR file using Notepad (or your favorite ASCII text editor) - ensuring that its extension is SCR and not TXT as per the default. Then type the same stuff as you've typed into the command-line into the SCR file (and I mean exactly the same, a space IS a spacebar, a new line IS an Enter, etc.). The test if the SCR works by running it on a temporary copy of your drawing through the SCRIPT command. Make sure it works before you start using it too much - a SCR can screw up DWGs easily! Next, use some form of batch scripting to run it on multiple DWGs / Layouts at once. For layouts you'd need some Lisp (which can even be incorporated into the SCR file). For multiple DWGs you'd need something else: ScriptPro / AutoScript / BatchWORX / ScriptWriter / etc. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.