<?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: Show selection with PickObject's button in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/show-selection-with-pickobject-s-button/m-p/11217791#M18646</link>
    <description>&lt;P&gt;If you wish to prompt the user to select elements, call PickObjects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want your add-in to specify the current selection set, use&amp;nbsp;&lt;SPAN&gt;SetElementsIds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to use PickObject ti prompt the user to select elements and then later&amp;nbsp;add those to the current selection set, store the element ids from&amp;nbsp;PickObject in a list and add that list to the list you send to SetElementsIds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you use&amp;nbsp;SetElementsIds, I see no point in presenting any buttons at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 19:56:30 GMT</pubDate>
    <dc:creator>jeremy_tammik</dc:creator>
    <dc:date>2022-06-06T19:56:30Z</dc:date>
    <item>
      <title>Show selection with PickObject's button</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/show-selection-with-pickobject-s-button/m-p/11216790#M18645</link>
      <description>&lt;P&gt;(Sorry for my english)&lt;/P&gt;&lt;P&gt;I want to show selected elements (prewiew) with my wpf window.&lt;/P&gt;&lt;P&gt;I use&lt;/P&gt;&lt;P&gt;Selection.SetElementsIds(myElements)&lt;/P&gt;&lt;P&gt;then I use PickObjects, but it drops current selection&lt;/P&gt;&lt;P&gt;How can I use PickObjects buttons and save selection? (I don't need to select another elements, I just need that buttons)&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 11:01:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/show-selection-with-pickobject-s-button/m-p/11216790#M18645</guid>
      <dc:creator>danil.kulik.2001</dc:creator>
      <dc:date>2022-06-06T11:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Show selection with PickObject's button</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/show-selection-with-pickobject-s-button/m-p/11217791#M18646</link>
      <description>&lt;P&gt;If you wish to prompt the user to select elements, call PickObjects.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want your add-in to specify the current selection set, use&amp;nbsp;&lt;SPAN&gt;SetElementsIds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to use PickObject ti prompt the user to select elements and then later&amp;nbsp;add those to the current selection set, store the element ids from&amp;nbsp;PickObject in a list and add that list to the list you send to SetElementsIds.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you use&amp;nbsp;SetElementsIds, I see no point in presenting any buttons at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 19:56:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/show-selection-with-pickobject-s-button/m-p/11217791#M18646</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-06-06T19:56:30Z</dc:date>
    </item>
  </channel>
</rss>

