Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Switch off Display Plot Styles

11 REPLIES 11
Reply
Message 1 of 12
Anonymous
3867 Views, 11 Replies

Switch off Display Plot Styles

I've searched and searched and I can't find a way to simply set the Display Plot Styles variable to off. (unchecked) I don't want to toggle it off/on but instead just set it to 0. Is there a system variable I can set in the command line? I have hundreds and hundreds of files that I need to do this to and I have written a script to automate several other things and I'd like to add this as well. Thanks,

11 REPLIES 11
Message 2 of 12
Alfred.NESWADBA
in reply to: Anonymous

Hi,

 

>> Is there a system variable I can set in the command line?

No, that is not a system variable, it's a setting of each single layout/pagesetup.

 

So you need to go through each layout and either uncheck "display plot styles" (or assign "acad.ctb" as plot style?)

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2024
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 12
-FDC-
in reply to: Anonymous

Right click on the layout tab.

Select "page setup manager".

Click modify.

Unselect "display plot styles"

 

1.JPG

 

2.JPG

Message 4 of 12
cwr-pae
in reply to: -FDC-

And this needs to be set in templates to default off in all future drawings.

Message 5 of 12
Anonymous
in reply to: Anonymous

So there is no way to automate this process to uncheck the box on multiple drawings?
Message 6 of 12
-FDC-
in reply to: Anonymous

I'm afraid you cant't.

But you can do multiple layouts with the Publish command

 

https://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/Select...

Message 7 of 12
-FDC-
in reply to: Anonymous

Or you can try it with the command dwgconvert.

Never tried it though (see attached YouTube video).

 

https://www.youtube.com/watch?v=rjuHqhN2LAs

Message 8 of 12
pendean
in reply to: Anonymous

Post in the LISP forum for help with coding it to run as a startup every time you open a file https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1
Message 9 of 12
jayN4FCL
in reply to: Anonymous

I wish this were an option. it is really annoying going into page setup every time.  Autodesk ~> Please make us a solution 🙂 

Message 10 of 12
pendean
in reply to: jayN4FCL
Message 11 of 12
nanja_c86
in reply to: Anonymous

Try this one the toggle plot style display for layouts only.

(defun c:togptl (/ doc layouts count index layout currentLayout showPlotStyles);Toggle plotstyle display for layouts only
(vl-load-com)
(setq doc (vla-get-activedocument (vlax-get-acad-object))
layouts (vla-get-layouts doc)
count (vla-get-count layouts)
index 0
currentLayout (getvar "ctab") ; store the current layout name
)
;; Check the ShowPlotStyles state of the first layout (excluding model space) to decide the toggle action
(setq showPlotStyles (vla-get-ShowPlotStyles (vla-item layouts 1))) ; assume the first layout is not model space

(while (< index count)
(setq layout (vla-item layouts index))
;; Skip model space
(if (/= (vla-get-name layout) "Model")
(progn
;; Switch to the layout
(setvar "ctab" (vla-get-name layout))
;; Toggle the ShowPlotStyles and lwdisplay
(if (= showPlotStyles :vlax-true)
(progn
(vla-put-ShowPlotStyles layout :vlax-false)
(setvar "lwdisplay" 0)
)
(progn
(vla-put-ShowPlotStyles layout :vlax-true)
(setvar "lwdisplay" 0)
)
)
;; Enter model space, regen, and return to paper space
(command "_.MSPACE")
(command "_.REGEN")
(command "_.PSPACE")
)
)
(setq index (1+ index))
)
;; Switch back to the original layout
(setvar "ctab" currentLayout)
(vla-regen doc acAllViewports)
(princ)
)

 

Message 12 of 12
RSomppi
in reply to: Anonymous

If something like this is needed on a regular basis, named page set-ups could help speed this up.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report