muck Posted February 7, 2012 Posted February 7, 2012 Is there any AutoCAD variables that tells Autopublish to plot in model space or paper space? Thank you, Quote
BIGAL Posted February 8, 2012 Posted February 8, 2012 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 Quote
Dadgad Posted February 8, 2012 Posted February 8, 2012 (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. Edited February 8, 2012 by Dadgad Quote
muck Posted February 8, 2012 Author Posted February 8, 2012 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, Quote
BIGAL Posted February 8, 2012 Posted February 8, 2012 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 ) Quote
muck Posted February 9, 2012 Author Posted February 9, 2012 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, Quote
BIGAL Posted February 9, 2012 Posted February 9, 2012 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. Quote
muck Posted February 17, 2012 Author Posted February 17, 2012 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, Quote
BIGAL Posted February 17, 2012 Posted February 17, 2012 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" ) ) 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.