BIGAL Posted May 12, 2017 Posted May 12, 2017 Marshrunner757 I think your over complicating what your trying to do when you look at my 1st post its about a script very simple supply a dwg name load a lisp and it plots. The lisp has hard coded where the result goes. For 5 mins work and my 100 dwgs start plotting. Apologies to Maratovich we can not view Utube at work I am sure it would be a good suggestion, will check it out later. AGAIN the problem I see is what are you plotting in model space you have not supplied much detail, if its extents then easy, just take the clipped bit of code as in your last post then just save it as myplot.lsp and look at my script, use lee-mac scriptwriter to select the dwgs. Look at this extra bit it adds where the file is going. (setvar "ctab" "Model") ; force the model to be current view just a precaution (command "zoom" "E") (setq dwgname (strcat "C:/temp/" (getvar "dwgname"))) (command "-plot" "yes" "Model" "Adobe PDF.pc3" "11 x 17" "I" "_l" "_n" "extents" "_F" "_C" "_Y" "acad.ctb" "_Y" "_N" dwgname "_Y" "_Y") There are many ways to write the script depending on how your directory structure is, in the time taken to write this post I would be well on the way to having plots coming out as its a very simple script. As an extra you can outside of Autocad join together pdfs to make 1 pdf using Ghostscript. Thats the way we have it, do all layouts and make a single one at same time. Quote
NghiaKieu Posted April 27, 2020 Posted April 27, 2020 On 5/12/2017 at 9:50 AM, BIGAL said: Marshrunner757 I think your over complicating what your trying to do when you look at my 1st post its about a script very simple supply a dwg name load a lisp and it plots. The lisp has hard coded where the result goes. For 5 mins work and my 100 dwgs start plotting. Apologies to Maratovich we can not view Utube at work I am sure it would be a good suggestion, will check it out later. AGAIN the problem I see is what are you plotting in model space you have not supplied much detail, if its extents then easy, just take the clipped bit of code as in your last post then just save it as myplot.lsp and look at my script, use lee-mac scriptwriter to select the dwgs. Look at this extra bit it adds where the file is going. (setvar "ctab" "Model") ; force the model to be current view just a precaution (command "zoom" "E") (setq dwgname (strcat "C:/temp/" (getvar "dwgname"))) (command "-plot" "yes" "Model" "Adobe PDF.pc3" "11 x 17" "I" "_l" "_n" "extents" "_F" "_C" "_Y" "acad.ctb" "_Y" "_N" dwgname "_Y" "_Y") There are many ways to write the script depending on how your directory structure is, in the time taken to write this post I would be well on the way to having plots coming out as its a very simple script. As an extra you can outside of Autocad join together pdfs to make 1 pdf using Ghostscript. Thats the way we have it, do all layouts and make a single one at same time. Instead of opening, how do I choose the drawing already open? Tks! 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.