<?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 Re: Change background color to white with .net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/change-background-color-to-white-with-net/m-p/11669258#M10411</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access this via the COM object &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-140B9E57-C5F3-4EFF-884B-6C11CD8DDDB0" target="_blank" rel="noopener"&gt;AcadApplication.Preferences.Display&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can avoid referencing the COM libraries by using the dynamic type (late bindings).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;dynamic acadApp = Application.AcadApplication;
var displayPrefs = acadApp.Preferences.Display;
displayPrefs.GraphicsWinModelBackgrndColor = 255 &amp;lt;&amp;lt; 16 | 255 &amp;lt;&amp;lt; 8 | 255;    // white
displayPrefs.ModelCrosshairColor = 0;                                       // black&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 10 Jan 2023 15:04:14 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-01-10T15:04:14Z</dc:date>
    <item>
      <title>Change background color to white with .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-background-color-to-white-with-net/m-p/11669089#M10410</link>
      <description>&lt;P&gt;Hi, I searched everywhere and couldn't find a way&lt;/P&gt;&lt;P&gt;I want to change the background color of an AutoCAD drawing from black to white&lt;/P&gt;&lt;P&gt;I'm working with c#, visual&amp;nbsp; studio&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 14:11:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-background-color-to-white-with-net/m-p/11669089#M10410</guid>
      <dc:creator>ops.team</dc:creator>
      <dc:date>2023-01-10T14:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Change background color to white with .net</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-background-color-to-white-with-net/m-p/11669258#M10411</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can access this via the COM object &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=GUID-140B9E57-C5F3-4EFF-884B-6C11CD8DDDB0" target="_blank" rel="noopener"&gt;AcadApplication.Preferences.Display&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;You can avoid referencing the COM libraries by using the dynamic type (late bindings).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;dynamic acadApp = Application.AcadApplication;
var displayPrefs = acadApp.Preferences.Display;
displayPrefs.GraphicsWinModelBackgrndColor = 255 &amp;lt;&amp;lt; 16 | 255 &amp;lt;&amp;lt; 8 | 255;    // white
displayPrefs.ModelCrosshairColor = 0;                                       // black&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 Jan 2023 15:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-background-color-to-white-with-net/m-p/11669258#M10411</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-01-10T15:04:14Z</dc:date>
    </item>
  </channel>
</rss>

