Jump to content

Recommended Posts

Posted

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.

  • 2 years later...
  • Replies 21
  • Created
  • Last Reply

Top Posters In This Topic

  • CafeJr

    8

  • marshrunner757

    8

  • maratovich

    3

  • BIGAL

    2

Posted
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!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...