Switch off Display Plot Styles

Anonymous

Switch off Display Plot Styles

Anonymous
Not applicable

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,

0 Likes
Reply
4,014 Views
11 Replies
Replies (11)

Alfred.NESWADBA
Consultant
Consultant

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

(not an Autodesk consultant)
0 Likes

-FDC-
Advisor
Advisor

Right click on the layout tab.

Select "page setup manager".

Click modify.

Unselect "display plot styles"

 

1.JPG

 

2.JPG

0 Likes

cwr-pae
Mentor
Mentor

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

0 Likes

Anonymous
Not applicable
So there is no way to automate this process to uncheck the box on multiple drawings?
0 Likes

-FDC-
Advisor
Advisor

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

0 Likes

-FDC-
Advisor
Advisor

Or you can try it with the command dwgconvert.

Never tried it though (see attached YouTube video).

 

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

0 Likes

pendean
Community Legend
Community Legend
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
0 Likes

jayN4FCL
Community Visitor
Community Visitor

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

0 Likes

nanja_c86
Enthusiast
Enthusiast

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

 

0 Likes

RSomppi
Advisor
Advisor

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

0 Likes