<?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 Update Layer Properties Manager Palette in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3194526#M58781</link>
    <description>&lt;P&gt;I've created a VB.NET routine to update blocks, layers and layer filters from a source drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After updating filters and when the command is finished (dialog closed), the Layer Properties Manager palette MAY not update to show the new set of filters although visually you can see that it does appear to refresh itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether it updates seems to depend on which filter is active and which filters are added.For example, I have properties filters A, B, C, D and E, and B and E have subfilters B1-B8 and E1-E9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Filter E3 is removed as a test and the parent filter E is active, when the command is done, E3 should appear back in the list, but it does not show until the palette is closed and reopened. If filter B is active, then the list will refresh and E3 will show immediatlely after the command exits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added a dialog to my routine to inform the user they may have to close the palette and reopen to get the proper display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of another solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Editor.UpdateScreen() but that does not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 17 Oct 2011 19:43:13 GMT</pubDate>
    <dc:creator>GTVic</dc:creator>
    <dc:date>2011-10-17T19:43:13Z</dc:date>
    <item>
      <title>Update Layer Properties Manager Palette</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3194526#M58781</link>
      <description>&lt;P&gt;I've created a VB.NET routine to update blocks, layers and layer filters from a source drawing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After updating filters and when the command is finished (dialog closed), the Layer Properties Manager palette MAY not update to show the new set of filters although visually you can see that it does appear to refresh itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whether it updates seems to depend on which filter is active and which filters are added.For example, I have properties filters A, B, C, D and E, and B and E have subfilters B1-B8 and E1-E9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Filter E3 is removed as a test and the parent filter E is active, when the command is done, E3 should appear back in the list, but it does not show until the palette is closed and reopened. If filter B is active, then the list will refresh and E3 will show immediatlely after the command exits.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added a dialog to my routine to inform the user they may have to close the palette and reopen to get the proper display.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know of another solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Editor.UpdateScreen() but that does not help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2011 19:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3194526#M58781</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2011-10-17T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Update Layer Properties Manager Palette</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3198254#M58782</link>
      <description>&lt;P&gt;Try re-showing the layer manager Palette after the layer filter update&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//get the LAYERMANAGERSTATE&lt;/P&gt;
&lt;P&gt;object manager = Application.GetSystemVariable("LAYERMANAGERSTATE");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if (manager.ToString().Contains("1"))&lt;/P&gt;
&lt;P&gt;{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; doc.SendStringToExecute("layerpalette ", true, false, false);&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Virupaksha Aithal&lt;/P&gt;
&lt;P&gt;Autodesk Developer Network&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 10:47:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3198254#M58782</guid>
      <dc:creator>Virupaksha_aithal</dc:creator>
      <dc:date>2011-10-20T10:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Update Layer Properties Manager Palette</title>
      <link>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3199420#M58783</link>
      <description>&lt;P&gt;Thank you, that worked, calling the LAYERPALETTE command when the Layer Properties Manager is open forces it to refresh.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a&amp;nbsp;boolean flag which is set to True when the layers or layer filters are updated&amp;nbsp;and added your code to my Form_FormClosing event to be executed if the flag is True.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;    Private Sub MyForm_FormClosing(...) Handles Me.FormClosing

        If Not UpdateLayerManager Then Exit Sub

        Dim lms As Object = Application.GetSystemVariable("LAYERMANAGERSTATE")
        If lms.ToString.Contains("1") Then
            MdiActiveDocument.SendStringToExecute("layerpalette ", True, False, True)
        End If

    End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 20:12:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/update-layer-properties-manager-palette/m-p/3199420#M58783</guid>
      <dc:creator>GTVic</dc:creator>
      <dc:date>2011-10-20T20:12:02Z</dc:date>
    </item>
  </channel>
</rss>

