<?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: Load family/place instance using externalcommand vs. externalevent in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12352636#M8957</link>
    <description>&lt;P&gt;Problem turned out to be using any Taskdialogs immediately before calling the external event, removing these allowed promptforfamilyinstanceplacement to work correctly. Not sure why this is the case.&lt;/P&gt;&lt;P&gt;I found this out by using the SampleApp from J0ffard_13(from &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/td-p/10614632" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), switching the PickPoint to promptforfamilyinstanceplacement and adding a listbox to the dockable pane .&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 17:44:53 GMT</pubDate>
    <dc:creator>garrettrAH7ED</dc:creator>
    <dc:date>2023-11-03T17:44:53Z</dc:date>
    <item>
      <title>Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12343947#M8952</link>
      <description>&lt;P&gt;I'm attempting to load(if needed) and place family instances in the same way as &lt;A href="https://thebuildingcoder.typepad.com/blog/2013/06/family-api-add-in-load-family-and-place-instances.html" target="_blank" rel="noopener"&gt;this&lt;/A&gt; post from Jeremy(minor updates to work in 2023 vs 2013) but using an externalevent instead of an externalcommand.&lt;/P&gt;&lt;P&gt;However, PromptForFamilyInstancePlacement seems to not be working correctly. When executed, the family is loaded/selected(ex: PVC Coupling), but isn't visible when hovering over other elements(ex: PVC pipe) and doesn't place when clicked. Any help appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 15:34:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12343947#M8952</guid>
      <dc:creator>garrettrAH7ED</dc:creator>
      <dc:date>2023-10-31T15:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12344115#M8953</link>
      <description>&lt;P&gt;Hah. Well, an external event may catch Revit at an unfortunate or unexpected moment, maybe. Have you tested compiling and running the Revit SDK external event sample? It does not use promptforfamilyinstanceplacement, just PickPoint et al, but it might give you a hint on how to get the Revit UI into a suitable state for proper UI interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 16:39:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12344115#M8953</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-10-31T16:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12350696#M8954</link>
      <description>&lt;P&gt;After trying some things out, it looks like it's a problem with raising an external event from a list box event handler(I'm using WPF). Raising that same event from a button click event handler works just fine. Any idea why it isn't working for list box handlers?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 23:03:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12350696#M8954</guid>
      <dc:creator>garrettrAH7ED</dc:creator>
      <dc:date>2023-11-02T23:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12350909#M8955</link>
      <description>&lt;P&gt;I prefer using external events in my development process. The IExternalCommand interface is defined in the RevitAPIUI.dll and belongs to the Autodesk.Revit.UI namespace. This interface is specifically designed to integrate customized functionalities into the Revit UI. External events provide a fundamental way for developers to call the Revit API within their code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding your problem, it would be helpful if you could provide a simple demo that can reproduce the case.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 02:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12350909#M8955</guid>
      <dc:creator>Kennan.Chen</dc:creator>
      <dc:date>2023-11-03T02:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12352333#M8956</link>
      <description>&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Hello, see if this code helps you. It is made in Revit 2024&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 15:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12352333#M8956</guid>
      <dc:creator>reylorente1</dc:creator>
      <dc:date>2023-11-03T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Load family/place instance using externalcommand vs. externalevent</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12352636#M8957</link>
      <description>&lt;P&gt;Problem turned out to be using any Taskdialogs immediately before calling the external event, removing these allowed promptforfamilyinstanceplacement to work correctly. Not sure why this is the case.&lt;/P&gt;&lt;P&gt;I found this out by using the SampleApp from J0ffard_13(from &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/invoking-selection-pickpoint-from-wpf-dockablepane-using/td-p/10614632" target="_blank" rel="noopener"&gt;here&lt;/A&gt;), switching the PickPoint to promptforfamilyinstanceplacement and adding a listbox to the dockable pane .&lt;/P&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:44:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/load-family-place-instance-using-externalcommand-vs/m-p/12352636#M8957</guid>
      <dc:creator>garrettrAH7ED</dc:creator>
      <dc:date>2023-11-03T17:44:53Z</dc:date>
    </item>
  </channel>
</rss>

