<?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 the properties before activating a command in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/change-the-properties-before-activating-a-command/m-p/12007877#M8641</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database" target="_blank" rel="noopener"&gt;Database&lt;/A&gt; class provides properties for most of the database system variables such as &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database_Cecolor" target="_blank" rel="noopener"&gt;Cecolor&lt;/A&gt; and &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database_Clayer" target="_blank" rel="noopener"&gt;Clayer&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2023 18:42:18 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2023-06-02T18:42:18Z</dc:date>
    <item>
      <title>Change the properties before activating a command</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-the-properties-before-activating-a-command/m-p/12007831#M8640</link>
      <description>&lt;P&gt;Is it possible to change the properties before activating a command so that all entities made by that command have those properties? Specifically changing the Color and layer properties to the one below. I basically want a new command in the ribbon for each draw command, annotation command so that the user can just click a button and the properties are chosen and then they are put back afterwards. It is like the layer director by Lee Mac but I can't find a vb.net version of it. An alternate solution would be to select the entities that were created after the command is run. Is there a way to do that?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-06-02 14_07_13-.png" style="width: 442px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1223068i2A14D0177064C225/image-size/large?v=v2&amp;amp;px=999" role="button" title="2023-06-02 14_07_13-.png" alt="2023-06-02 14_07_13-.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 18:14:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-the-properties-before-activating-a-command/m-p/12007831#M8640</guid>
      <dc:creator>SiEngineer</dc:creator>
      <dc:date>2023-06-02T18:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change the properties before activating a command</title>
      <link>https://forums.autodesk.com/t5/net-forum/change-the-properties-before-activating-a-command/m-p/12007877#M8641</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database" target="_blank" rel="noopener"&gt;Database&lt;/A&gt; class provides properties for most of the database system variables such as &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database_Cecolor" target="_blank" rel="noopener"&gt;Cecolor&lt;/A&gt; and &lt;A href="https://help.autodesk.com/view/OARX/2023/ENU/?guid=OARX-ManagedRefGuide-Autodesk_AutoCAD_DatabaseServices_Database_Clayer" target="_blank" rel="noopener"&gt;Clayer&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 18:42:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/change-the-properties-before-activating-a-command/m-p/12007877#M8641</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2023-06-02T18:42:18Z</dc:date>
    </item>
  </channel>
</rss>

