sdevecy Posted December 2, 2019 Posted December 2, 2019 Hello friends, I'm sorry to ask for help in my first message. But i really need this lisp if possible. I'm getting into the topic; when I draw a technical picture, first convert to pdf and save to folder then I get the same file output from the printer is there any way, to perform these two operations at the same time with lisp? for example, I will write the lisp code and select the print area then baaam! technical drawing will be available on both my desktop and printer Quote
BIGAL Posted December 3, 2019 Posted December 3, 2019 (edited) Yes can be done there are so many examples of plotting using lisp. In simplest terms this is what you need but twice, once for pdf once for printer. The lisp will print selected layouts to a pdf, making a pdf directory under the current dwg location. It is hard coded for a std title block. If you elaborate more, model v;s layout has big impact, you may also want to search for Maratovich & Plotting. (COMMAND "-PLOT" "Y" "" "DWG To PDF" "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" "1=2" "C" "y" "Acad.ctb" "Y" "n" "n" "n" pdfName "N" "y" ) Multi GETVALS.lsp plotA3Pdfrange.lsp Edited December 3, 2019 by BIGAL Quote
sdevecy Posted December 3, 2019 Author Posted December 3, 2019 6 hours ago, BIGAL said: Yes can be done there are so many examples of plotting using lisp. In simplest terms this is what you need but twice, once for pdf once for printer. The lisp will print selected layouts to a pdf, making a pdf directory under the current dwg location. It is hard coded for a std title block. If you elaborate more, model v;s layout has big impact, you may also want to search for Maratovich & Plotting. (COMMAND "-PLOT" "Y" "" "DWG To PDF" "Iso full bleed A3 (420.00 x 297.00 MM)" "m" "LANDSCAPE" "N" "W" "-6,-6" "807,560" "1=2" "C" "y" "Acad.ctb" "Y" "n" "n" "n" pdfName "N" "y" ) Multi GETVALS.lsp 2.11 kB · 17 downloads plotA3Pdfrange.lsp 1.23 kB · 1 download Thanks for answer. When i command -plot too many variable asked me. Im working only in model space. I want only command + choose printable area and finish with default print values (lineweight, color etc.) Quote
maratovich Posted December 3, 2019 Posted December 3, 2019 sdevecy Give us an example of your .dwg file with your title block. Quote
Steven P Posted December 4, 2019 Posted December 4, 2019 So to fix 'too many variabe' I would plot a test print via the command line, type in "-plot" and then copy yuor answers to say notepad as you run through it.. then this gives you the options similar to BigAls example - this should then plot OK. Do this for both paper plots and PDF plots Look up how to select a window and put in that routine before the plotting then use the resuls of that instead of the coordinates for both paper and PDF plotting and it should work OK I am at home now so no handy examples for you but with luck that sould gve you a hint Quote
sdevecy Posted December 4, 2019 Author Posted December 4, 2019 On 12/3/2019 at 4:09 PM, maratovich said: sdevecy Give us an example of your .dwg file with your title block. For the example, I added the dwg file. 1 hour ago, Steven P said: So to fix 'too many variabe' I would plot a test print via the command line, type in "-plot" and then copy yuor answers to say notepad as you run through it.. then this gives you the options similar to BigAls example - this should then plot OK. Do this for both paper plots and PDF plots Look up how to select a window and put in that routine before the plotting then use the resuls of that instead of the coordinates for both paper and PDF plotting and it should work OK I am at home now so no handy examples for you but with luck that sould gve you a hint thanks a lot! i will try this hint B6.dwg Quote
BIGAL Posted December 4, 2019 Posted December 4, 2019 Ok plot all title blocks in model space, better answer though may be with Maratovich. You will need to edit code to suit title block and size. It expects a block for the title, could be the outer pline. Plot-titles-in-model.lsp Quote
maratovich Posted December 5, 2019 Posted December 5, 2019 sdevecy If it will be difficult for you to use Lisp, then you can try an additional program.Here is the link - Revers - Automatic batch printingThis is a video tutorial for your title blocks : https://youtu.be/Er0Wz4AHUpc 1 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.