<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display Plot Styles? in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016303#M17576</link>
    <description>&lt;P&gt;I'm trying to develop an app that if possible will check if the "Display plot styles" is turned on in the drawing's "page setup". I've been looking through the "Developer and ObjectARX Help" for any reference to it that I could find. I'm wondering if its even possible to accomplish this using .NET ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jan 2021 14:58:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-01-20T14:58:38Z</dc:date>
    <item>
      <title>Display Plot Styles?</title>
      <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016303#M17576</link>
      <description>&lt;P&gt;I'm trying to develop an app that if possible will check if the "Display plot styles" is turned on in the drawing's "page setup". I've been looking through the "Developer and ObjectARX Help" for any reference to it that I could find. I'm wondering if its even possible to accomplish this using .NET ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 14:58:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016303#M17576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Display Plot Styles?</title>
      <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016403#M17577</link>
      <description>&lt;LI-CODE lang="general"&gt;        public static bool GetShowPlotStyles(ref bool doShowPlotStyles)
        {
            Document doc = AcadApp.DocumentManager.MdiActiveDocument;
            Database db = doc.Database;
            Editor ed = doc.Editor;

            bool didSuceed = false;

            using (Transaction tr = db.TransactionManager.StartTransaction())
            {
                try
                {
                    // Get the Layout Manager
                    LayoutManager layoutMgr = LayoutManager.Current;
                    // get current layout
                    Layout layout = (Layout)tr.GetObject(layoutMgr.GetLayoutId(layoutMgr.CurrentLayout), OpenMode.ForRead);

                    // Get the PlotInfo from the layout
                    PlotInfo plotInfo = new PlotInfo();
                    plotInfo.Layout = layout.ObjectId;

                    // Get a copy of the PlotSettings from the layout
                    PlotSettings ps = new PlotSettings(layout.ModelType);
                    ps.CopyFrom(layout);
                    // get the setting
                    doShowPlotStyles = ps.ShowPlotStyles;
                    didSuceed = true;
                }
                catch
                {
                }

                tr.Commit();
            }// End of transaction

            return didSuceed;
        }&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 20 Jan 2021 15:35:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016403#M17577</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2021-01-20T15:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Display Plot Styles?</title>
      <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016644#M17578</link>
      <description>&lt;P&gt;Thank you for the quick reply! I over looked that one in the Developer Guide! Thank you!!!!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jan 2021 16:45:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/10016644#M17578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-01-20T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Display Plot Styles?</title>
      <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/14052120#M86661</link>
      <description>&lt;P&gt;I really wish this was a user setting instead of a file/tab setting.&amp;nbsp; we have some users who like it and some who hate it.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 11:35:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/14052120#M86661</guid>
      <dc:creator>rexhaujm</dc:creator>
      <dc:date>2026-03-12T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display Plot Styles?</title>
      <link>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/14052184#M86662</link>
      <description>&lt;P&gt;I made a LISP command to toggle it with a short command (PST). It's not quite what you want, but it's a quick way to switch back and forth.&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;;  Plot Style Toggle
(defun C:PST (              
          /
          acadDocument      ; Holds reference to the active AutoCAD drawing object.
          acadLayout        ; Holds reference to the active Layout object.
          acadObject        ; Holds reference to the AutoCAD object.
          showPStyles       ; Holds current status of PlotStyle display on the active Layout.
         ) ;_ End arguments &amp;amp; local variables.
  (cond                 ; Cond A
    ((= (getvar "TILEMODE") 1)      ; Model tab is active, abort command.
      (alert
    (strcat
      "C:PST is meant for use on a Layout tab, not on the Model tab."
      "\nPlease change to a Layout tab and try again."
    ) ;_ End strcat.
      ) ;_ End alert.
    ) ;_ End condition A1.
    (T                  ; Condition A2.
     (vl-load-com)          ; Load "vl" functions, if not already loaded.
     (setq
       acadObject     (vlax-get-acad-object)
       acadDocument   (vlax-get-property acadObject 'ActiveDocument)
       acadLayout     (vlax-get-property acadDocument 'ActiveLayout)
       showPStyles (vlax-get-property acadLayout 'ShowPlotStyles)
     ) ;_ End setq.
     (if (= showPStyles :vlax-true)
       (progn
     (vlax-put-property acadLayout 'ShowPlotStyles :vlax-false)
     (prompt "\nThe display of plot styles has been turned off. ")
       ) ;_ End progn.
       (progn
     (vlax-put-property acadLayout 'ShowPlotStyles :vlax-true)
     (prompt "\nThe display of plot styles has been turned on. ")
       ) ;_ End progn.
     ) ;_ End if.
     (vlax-release-object acadLayout)
     (vlax-release-object acadDocument)
     (vlax-release-object acadObject)
     (command "_.REGENALL")     ; Regenerate the screen graphics.
    ) ;_ End condition A2.
  ) ;_ End cond A.
  (prin1)
) ;_ End C:PST.&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Mar 2026 12:41:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/display-plot-styles/m-p/14052184#M86662</guid>
      <dc:creator>jabowabo</dc:creator>
      <dc:date>2026-03-12T12:41:03Z</dc:date>
    </item>
  </channel>
</rss>

