<?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: Select Revit UI from ExternalCommand in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517577#M34228</link>
    <description>&lt;P&gt;Does this link perhaps contain some clues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2017/10/modeless-form-keep-revit-focus-and-on-top.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2017/10/modeless-form-keep-revit-focus-and-on-top.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that I believe the process / calls have changed in recent versions of Revit.&lt;/P&gt;</description>
    <pubDate>Fri, 15 May 2020 00:28:39 GMT</pubDate>
    <dc:creator>Sean_Page</dc:creator>
    <dc:date>2020-05-15T00:28:39Z</dc:date>
    <item>
      <title>Select Revit UI from ExternalCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517323#M34227</link>
      <description>&lt;P&gt;Hi forum. Probably being a little &lt;SPAN&gt;punctilious here but.. The thing is that I want to go the Revit and select some stuff, the come back to my form. This code is working so far:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;MyForm.WindowState = FormWindowState.Minimized; //minimize my form to see the revit window
myRef = uidoc.Selection.PickObjects(ObjectType.Element, "Select elements");
MyForm.WindowState = FormWindowState.Normal; //Take my form back.
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I dont know if its the best way to handle this problem, but as its working its ok for me. My problem with this code is that just before selecting the Revit elements, I have to click somewhere in the Revit screen to select the UI, then I can select elements normally. I know this may be a little&amp;nbsp;&lt;SPAN&gt;punctilious but, how could I save this one extra click and select Revit directly from my addin?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2020 21:39:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517323#M34227</guid>
      <dc:creator>jjesusdelpino</dc:creator>
      <dc:date>2020-05-14T21:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Select Revit UI from ExternalCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517577#M34228</link>
      <description>&lt;P&gt;Does this link perhaps contain some clues?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2017/10/modeless-form-keep-revit-focus-and-on-top.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2017/10/modeless-form-keep-revit-focus-and-on-top.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep in mind that I believe the process / calls have changed in recent versions of Revit.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 00:28:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517577#M34228</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-05-15T00:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Select Revit UI from ExternalCommand</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517662#M34229</link>
      <description>&lt;P&gt;Thanks like always Spage. Im missing some references from that example but Im gonna give it a deeper look. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 15 May 2020 01:46:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/select-revit-ui-from-externalcommand/m-p/9517662#M34229</guid>
      <dc:creator>jjesusdelpino</dc:creator>
      <dc:date>2020-05-15T01:46:58Z</dc:date>
    </item>
  </channel>
</rss>

