<?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 Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10614632#M23783</link>
    <description>&lt;P&gt;Revit 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only workaround I've found is to change the UIDocument.ActiveView to a different view and then back but that is SO garbage and slow, plus the UI flashes, plus you have to close the temporary view if it wasn't already open. Please advise if there is a better way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fun fact, without this the user won't even know that the ExternalEvent has been raised until they actually click back into the ActiveView. They may continue to fire of ExternalEvents from the pane not knowing what is happening. Please fix this bug ASAP.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 21:15:39 GMT</pubDate>
    <dc:creator>JOfford_13</dc:creator>
    <dc:date>2021-09-10T21:15:39Z</dc:date>
    <item>
      <title>Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10614632#M23783</link>
      <description>&lt;P&gt;Revit 2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only workaround I've found is to change the UIDocument.ActiveView to a different view and then back but that is SO garbage and slow, plus the UI flashes, plus you have to close the temporary view if it wasn't already open. Please advise if there is a better way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Fun fact, without this the user won't even know that the ExternalEvent has been raised until they actually click back into the ActiveView. They may continue to fire of ExternalEvents from the pane not knowing what is happening. Please fix this bug ASAP.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 21:15:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10614632#M23783</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2021-09-10T21:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10615107#M23784</link>
      <description>&lt;P&gt;That sounds serious indeed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide a minimal reproducible case to demonstrate the problem for the development team to analyse?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Sep 2021 06:30:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10615107#M23784</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-11T06:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618617#M23785</link>
      <description>&lt;P&gt;Hello, attached is the most simple demo I can think of. Please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 13:27:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618617#M23785</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2021-09-13T13:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618748#M23786</link>
      <description>&lt;P&gt;Thank you. It looks sensible to me. I'll ask the devteam.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Meanwhile, here is possibly a related thread:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/click-on-dock-pane-deselects-elements/m-p/5279637" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/click-on-dock-pane-deselects-elements/m-p/5279637&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer points out that thread also as a solution to this one:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/dockable-pane-focus/m-p/8887307" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/dockable-pane-focus/m-p/8887307&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope it helps! I am sure others have encountered this behaviour before, and resolved it, so let's get this solved, please!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:16:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618748#M23786</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-13T14:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618851#M23787</link>
      <description>&lt;P&gt;Thanks for the feedback. I've seen these threads before and it seemed neither fix or directly address the ActiveView focus issue. For giggles I tried the SetForegroundWindow approach again in the sample I sent but no luck, much like others in that thread.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 14:48:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10618851#M23787</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2021-09-13T14:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10621019#M23788</link>
      <description>&lt;P&gt;Dear Joe,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your report, clear description and sample material.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry to hear about this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I logged the issue &lt;U&gt;&lt;STRONG&gt;REVIT-182203&lt;/STRONG&gt;&lt;/U&gt; [PickPoint in external event from dockable panel does not focus active view] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue is important to me. What can I do to help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue needs to be assessed by our engineering team and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Impact on your application and/or your development.&lt;/LI&gt;
&lt;LI&gt;The number of users affected.&lt;/LI&gt;
&lt;LI&gt;The potential revenue impact to you.&lt;/LI&gt;
&lt;LI&gt;The potential revenue impact to Autodesk.&lt;/LI&gt;
&lt;LI&gt;Realistic timescale over which a fix would help you.&lt;/LI&gt;
&lt;LI&gt;In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This information is extremely important. Our engineering team have limited resources, and so must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 10:38:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10621019#M23788</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-14T10:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10641513#M23789</link>
      <description>&lt;P&gt;Dear Joe,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Things are looking good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The development team confirmed the issue.&lt;/LI&gt;
&lt;LI&gt;They opened a new code fix issue to perform the required work, &lt;U&gt;&lt;STRONG&gt;REVIT-182595&lt;/STRONG&gt;&lt;/U&gt; [PickPoint in external event from dockable panel does not focus active view].&lt;/LI&gt;
&lt;LI&gt;They closed the initial case &lt;STRONG&gt;&lt;U&gt;REVIT-182595&lt;/U&gt;&lt;/STRONG&gt; [PickPoint in external event from dockable panel does not focus active view].&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Best of all, they suggest a workaround, saying:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This issue is caused by the dockable pane being focused when user clicks its buttons, while the PickPoint editor needs the canvas view to be focused instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We cannot provide a fix for this in previous versions right away.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, in previous versions, users can use the following workaround to activate the canvas view before PickPoint is called:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="csharp"&gt;  const int WM_MDIGETACTIVE = 0x0229;
  const int WM_MDIACTIVATE = 0x0222;

  [DllImport("User32.dll", EntryPoint = "SendMessage")]
    public static extern int SendMessage(
      IntPtr hWnd, int Msg, int wParam, int lParam);
  
  private void OnClick( object sender, RoutedEventArgs e )
  {
    TaskDialog.Show( nameof(RevitPane),
      "Raising external event...");
    
    // Activate the current view frame window
    
    var childHwnd = SendMessage( App.UIApp.MainWindowHandle,
      WM_MDIGETACTIVE, 0, 0);
      
    SendMessage( App.UIApp.MainWindowHandle,
      WM_MDIACTIVATE, childHwnd, 0);
    
    RevitPane.Default.ExternalEvent.Raise();
  }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 06:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10641513#M23789</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-23T06:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10642329#M23790</link>
      <description>&lt;P&gt;Jeremy, thanks for all the help getting this issue addressed. It's encouraging to see swift action by the development team.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 12:56:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10642329#M23790</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2021-09-23T12:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10642442#M23791</link>
      <description>&lt;P&gt;Thank you for your nice appreciation! I passed it on to the team, and added my own appreciation for their swift and effective action as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 13:31:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10642442#M23791</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-09-23T13:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685180#M23792</link>
      <description>&lt;P&gt;Dear Joe,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again for brining this up and for your patience getting it addressed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code fix issue REVIT-182595 [PickPoint in external event from dockable panel does not focus active view] has now been resolved and we can expect the improved behaviour to become available in the next major release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Oct 2021 09:36:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685180#M23792</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-10-13T09:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685471#M23793</link>
      <description>This is awesome to hear!</description>
      <pubDate>Wed, 13 Oct 2021 11:55:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685471#M23793</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2021-10-13T11:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Invoking Selection.PickPoint() from WPF DockablePane using ExternalEvent doesn't focus ActiveView</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685636#M23794</link>
      <description>Fabulous! Thanks again for taking the time to get this resolved.</description>
      <pubDate>Wed, 13 Oct 2021 12:54:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/m-p/10685636#M23794</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2021-10-13T12:54:03Z</dc:date>
    </item>
  </channel>
</rss>

