Toggle Display Plot Style in Layout Tab

 I am finding the display plot style option in the page setup dialog very handy for laying out the presentation drawings that I am currently working on.  I am wondering if there is a way, via lisp or command line, that I could toggle the option to display the plot style for the current page setup?

Comments

  • Try:
    [code](defun c:ToggleDisplayPlotStyle ( / actLayoutObject)
      (setq actLayoutObject (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))))
      (vlax-put
        actLayoutObject
        'showplotstyles
        (if (zerop (vlax-get actLayoutObject 'showplotstyles))
          -1
          0
        )
      )
      (princ)
    )[/code]
  • That's great! Thanks so much, Roy. I really needed that routine, but didn't think it was possible; and yet you made it look very easy.
  •  Ahh, awesome, thank you!
This discussion has been closed.