Jump to content

Recommended Posts

Posted

Is there any AutoCAD variables that tells Autopublish to plot in

model space or paper space?

Thank you,

Posted

Do you mean "Publish" it can have model & layouts saved which plot together you can reload them. Or do you wnat to plot only say model space v's layouts only ?

 

If the second lisp1 layouts, lisp2 modelspace

Posted (edited)

If you go into OPTIONS > PLOT & PUBLISH tab, you can designate different settings for the Automatic Publish Settings. You can choose to publish either the model or paperspace, or both of them by clicking into the INCLUDE box and specifying settings.

auto publish options.JPG

Edited by Dadgad
Posted

I would like to write a lisp routine to control AutoPublish (Not Publish).

I would like to control AutoPublish pfd Layout or Model space plottinng

based upon tilemode.

Thank you,

Posted

Back to my post, search here for plot to pdf lots of lisp examples but they dont use Autopublish they could check tilemode its a variable or check wether your in a layout or in modelspace its part of the Layouts group. variable CTAB is the current layout name.

 

(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(vlax-for lay (vla-get-Layouts doc)
 (setq plotabs (cons (vla-get-name lay) plotabs))
)
(setq len (length plottablist))
(setq x 0)
(repeat len
 (setq name (nth x plottablist))
 (princ name)
 (if (/= name "Model")
do something here
)

Posted

To Change What Layout Autopublish plots you have to go to

options - Plot & Pub Tab - Automatic Publish Button then change

the "Include" pull down to what layout you want.

I would like to do that all a the command prompt with

going through those burried menus.

If I had a variable that controlled which layout Autopublish

uses then a lisp routine could be make to do all of that

at the command prompt.

 

Any suggestions.

Thank you,

Posted

Can you explain a bit more what it is you are trying to achieve ignore the autopublish bit, is it plot multi sheets out of model plus plot some layouts do the layouts have more than one sheet ? Again I press 1 button all my layouts are plotted no matter how many, I could also make a list and save it away for future plotting.

Posted

I was going to write a lisp route to change the Autopublish "include" settings showen

in the picture in post 3 above. My routine would change allow me to publish model or

paper space using the command prompt. Not by going through a burried menus and

tabs in the options menu. That was my goal.

Thank you,

Posted

Rather than auto publish maybe use a dcl to pick a list of the tabs you want plotted you can then save this list either outside the dwg or within. If you have a look at the auto plot style I use it just changes the CTAB variable to select the next layout to be plotted using a simple lisp.

 

eg

 
this is a loop of layout names
(if (/= name "Model")
   (progn
     (setvar "ctab" name)
     (COMMAND "-PLOT"  "Y"  "" "Cutepdf Writer"
       "A3" "m"    "LANDSCAPE"    "N"   "W"  "-6,-6"    "807,560" "1=2"  "C"
       "y"   "Designlasercolour.ctb" "Y" "n"    "n"    "y"   "N" "N" "y"      )
   )

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...