<?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: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4797227#M77667</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a little more information. Is your dialog modeless? When you hit the space bar, is your dialog still open and listening to events? What kind of family instance are you facing? Are you trying to replicate the native Revit command for placing the family instance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gopinath&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2014 01:47:33 GMT</pubDate>
    <dc:creator>gopinath.taget</dc:creator>
    <dc:date>2014-02-06T01:47:33Z</dc:date>
    <item>
      <title>promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4794701#M77666</link>
      <description>&lt;P&gt;I'm writing an addin to place family instances. The general idea is that a dialog pops up and listens for a key to be pressed &amp;amp; depending on the key that was pressed the user will be prompted to place an instances of a particular family. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I call the addin command with a keyboard shortcut, press a key to select the family to be placed, when I press the space bar to rotate the family being placed the addin is called again &amp;amp; the dialog pops up again. &amp;nbsp;Based on what is displayed in the Revit status bar I believe revit is just launching the addin again from the beginning. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I wait a couple seconds then hit the spacebar, Revit is no longer listening for a keyboard shortcut or cycling. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I make revit stop listenig for a keyboard shortcuts/ cycling while my addin is running? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a snip of the status bar of when I'm placing the family &amp;amp; the shortcut cycling is still in the status bar. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2014 04:12:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4794701#M77666</guid>
      <dc:creator>bxw</dc:creator>
      <dc:date>2014-02-05T04:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4797227#M77667</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need a little more information. Is your dialog modeless? When you hit the space bar, is your dialog still open and listening to events? What kind of family instance are you facing? Are you trying to replicate the native Revit command for placing the family instance?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Gopinath&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 01:47:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4797227#M77667</guid>
      <dc:creator>gopinath.taget</dc:creator>
      <dc:date>2014-02-06T01:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4797253#M77668</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Gopinath thanks for your reply. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is your dialog modeless? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;No. &amp;nbsp;Once a a key is pressed, close the dialog box Dialog Result OK.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When you hit the space bar, is your dialog still open and listening to events&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;No. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What kind of family instance are you facing&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Its a level based family, Electrical fixture category. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Are you trying to replicate the native Revit command for placing the family instance?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;Not really. &amp;nbsp;The point of the addin is to place an instance of a particular family and avoid having to scroll through the types in the properties palette. The dialog displays a list of family types that could be placed, each one has a letter associated with it. &amp;nbsp;That letter passes the family type (FamilySymbol) to promptforfamilyinstanceplacement. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example workflow (Key strokes in &lt;STRONG&gt;Bold&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Revit keyboard shortcut: &lt;STRONG&gt;BS,&lt;/STRONG&gt;&amp;nbsp;&lt;SPAN&gt;Command is launched &amp;amp; dialog is shown.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;X&lt;/STRONG&gt; Key pressed to select a predefined family &amp;amp; type from my dialog box. &amp;nbsp;My dialog is closed by the key press event &amp;amp; promptforfamily instance placement is called. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Spacebar&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;pressed to rotate the family for placement. &amp;nbsp;This is where the problem occurs. &amp;nbsp;The spacebar starts the command over, the status bar is still displaying keyboard shortcut info even though the command is already running. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If i wait a couple seconds before hitting the spacebar to rotate the family without issue. &amp;nbsp;After that couple seconds &lt;SPAN&gt;the status bar stops showing the keyboard shortcut info &amp;amp; displays info about placing a family. &amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess the question is, why is revit still "listening" for a shortcut or shortcut cycling when a command is active?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried creating a transaction before the dialog was launched &amp;amp; closing the transaction before calling&amp;nbsp;promptforfamilyinstanceplacement, since it can't be called from within a transaction. &amp;nbsp;But no luck. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2014 03:06:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/4797253#M77668</guid>
      <dc:creator>bxw</dc:creator>
      <dc:date>2014-02-06T03:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630748#M77669</link>
      <description>&lt;P&gt;Can you upload your code here ?&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 08:35:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630748#M77669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-12T08:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630797#M77670</link>
      <description>&lt;P&gt;This may not help in your situation but instead of using &lt;SPAN&gt;UIDocument.PromptForFamilyInstancePlacement()&lt;/SPAN&gt;&amp;nbsp; to place the families how about you try "&lt;SPAN style="line-height: 15px;"&gt;UIDocument.PostRequestForElementTypePlacement()"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;It may work????&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 15px;"&gt;Phillip&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 09:17:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630797#M77670</guid>
      <dc:creator>PhillipM</dc:creator>
      <dc:date>2015-05-12T09:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: promptforfamilyinstanceplacement spacebar to rotate causes shortcut cycling?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630818#M77671</link>
      <description>&lt;P&gt;Oh this is a old Topic. &amp;nbsp;SOrry &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2015 09:40:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/promptforfamilyinstanceplacement-spacebar-to-rotate-causes/m-p/5630818#M77671</guid>
      <dc:creator>PhillipM</dc:creator>
      <dc:date>2015-05-12T09:40:20Z</dc:date>
    </item>
  </channel>
</rss>

