<?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 How to cancel from prompt method in the code? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-cancel-from-prompt-method-in-the-code/m-p/11932956#M12305</link>
    <description>&lt;P&gt;I am using with this method in my code:&lt;BR /&gt;Autodesk.Revit.UI.UIDocument.PromptForFamilyInstancePlacement.&lt;/P&gt;&lt;P&gt;My problam is that with this method,&amp;nbsp;&lt;SPAN&gt;In a single invocation, the user can place multiple instances of the input family type until they finish the placement (with Cancel or ESC or a click elsewhere in the UI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to exit the method after the user places one element.&lt;/P&gt;&lt;P&gt;So i create an event -&amp;nbsp;&lt;SPAN&gt;DocumentChanged, and that's how I can know when the user places an element.&lt;BR /&gt;My question is how do I get out of this method (PromptForFamilyInstancePlacement)? Is there any method to do this?&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 01 May 2023 07:58:45 GMT</pubDate>
    <dc:creator>EyalRELJT</dc:creator>
    <dc:date>2023-05-01T07:58:45Z</dc:date>
    <item>
      <title>How to cancel from prompt method in the code?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-cancel-from-prompt-method-in-the-code/m-p/11932956#M12305</link>
      <description>&lt;P&gt;I am using with this method in my code:&lt;BR /&gt;Autodesk.Revit.UI.UIDocument.PromptForFamilyInstancePlacement.&lt;/P&gt;&lt;P&gt;My problam is that with this method,&amp;nbsp;&lt;SPAN&gt;In a single invocation, the user can place multiple instances of the input family type until they finish the placement (with Cancel or ESC or a click elsewhere in the UI).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I want to exit the method after the user places one element.&lt;/P&gt;&lt;P&gt;So i create an event -&amp;nbsp;&lt;SPAN&gt;DocumentChanged, and that's how I can know when the user places an element.&lt;BR /&gt;My question is how do I get out of this method (PromptForFamilyInstancePlacement)? Is there any method to do this?&lt;BR /&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 07:58:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-cancel-from-prompt-method-in-the-code/m-p/11932956#M12305</guid>
      <dc:creator>EyalRELJT</dc:creator>
      <dc:date>2023-05-01T07:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel from prompt method in the code?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-cancel-from-prompt-method-in-the-code/m-p/11933222#M12306</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13464608"&gt;@EyalRELJT&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please take a look at this below link&lt;BR /&gt;&lt;STRONG&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2015/02/sending-escape-to-terminate-a-family-instance-placement-loop.html" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2015/02/sending-escape-to-terminate-a-family-instance-placement-loop.html&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 May 2023 10:55:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-cancel-from-prompt-method-in-the-code/m-p/11933222#M12306</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2023-05-01T10:55:11Z</dc:date>
    </item>
  </channel>
</rss>

