<?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: Enforce Revit to perform potable command before doing the rest of my code! in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6559954#M63040</link>
    <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying on these questions, Actually I need to cut some elements to clipboard and then paste it back and in between I'd like to do some commands. Yes, I got another solution that has been posted on your blog "the building coder" to do a transaction group and roll back afterwords so thank you also for keeping post these solutions, your blog is really a great source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question now, even if I need to do a postable command, can I force Revit not to postpone it till the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ibrahim Naeem &amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2016 18:46:30 GMT</pubDate>
    <dc:creator>IbrahimNaeem</dc:creator>
    <dc:date>2016-09-13T18:46:30Z</dc:date>
    <item>
      <title>Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6555189#M63038</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a problem with implementing two postable commands in the same external command, Actually I have two problems:&lt;/P&gt;&lt;P&gt;1- I have implemented two external events to perform the two postable commands, only one of them is working and postponed till the end of the code lines"I know why" but is there a way to enforce Revit not to postpone the postable command ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2- The two commands are "CutToClipboard", which working fine and the other one is "PasteFromClipboard" which isn't working. Are there Postable Commands which not doable yet?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ibrahim Naeem&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Sep 2016 11:10:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6555189#M63038</guid>
      <dc:creator>IbrahimNaeem</dc:creator>
      <dc:date>2016-09-11T11:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6557606#M63039</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;SPAN&gt;Ibrahim Naeem,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Afaik, you can only post one command.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want more than that, things will probably start to get tricky.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Maybe there is an easier and more robust way to achieve what you are after?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2016 18:47:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6557606#M63039</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-12T18:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6559954#M63040</link>
      <description>&lt;P&gt;Hi Jeremy,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replying on these questions, Actually I need to cut some elements to clipboard and then paste it back and in between I'd like to do some commands. Yes, I got another solution that has been posted on your blog "the building coder" to do a transaction group and roll back afterwords so thank you also for keeping post these solutions, your blog is really a great source.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question now, even if I need to do a postable command, can I force Revit not to postpone it till the end?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, Ibrahim Naeem &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:46:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6559954#M63040</guid>
      <dc:creator>IbrahimNaeem</dc:creator>
      <dc:date>2016-09-13T18:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6559966#M63041</link>
      <description>&lt;P&gt;Dear Ibrahim,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your appreciation. Glad it helped.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nope, sorry, no way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:50:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6559966#M63041</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-09-13T18:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6560367#M63042</link>
      <description>&lt;P&gt;Hello Ibrahim,&lt;/P&gt;&lt;P&gt;I do not know of a way to postpone a posted command, but have some other thoughts. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Have you seen&amp;nbsp;the ElementTransformUtils.CopyElements() method? &amp;nbsp;If that will not suffice then,&lt;/LI&gt;&lt;LI&gt;Chaining multiple PostCommands together scares me but, a while back I created a PostableCommandBase helper class to help me run code after a posted command completed. &amp;nbsp;Perhaps you could use it to get the results you need, &amp;nbsp;&lt;A href="http://forums.autodesk.com/t5/revit-api-forum/a-question-about-suppressing-warning-messages-in-revit/m-p/6367827#M16595" target="_blank"&gt;http://forums.autodesk.com/t5/revit-api-forum/a-question-about-suppressing-warning-messages-in-revit/m-p/6367827#M16595&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Tue, 13 Sep 2016 21:43:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6560367#M63042</guid>
      <dc:creator>BobbyC.Jones</dc:creator>
      <dc:date>2016-09-13T21:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Enforce Revit to perform potable command before doing the rest of my code!</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6560922#M63043</link>
      <description>There is an event in the AdWindows.dll that you can use that fires directly after a command has posted.&lt;BR /&gt;So you can basically post one command, and then listen to the event and then fire the other after the first is completed.&lt;BR /&gt;This is the event:&lt;BR /&gt;Autodesk.Windows.ComponentManager.ItemExecuted&lt;BR /&gt;There is a blogpost about on Jeremys blog:&lt;BR /&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2015/02/automation-ribbon-panel-itemexecuted-and-vacation.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2015/02/automation-ribbon-panel-itemexecuted-and-vacation.html&lt;/A&gt;</description>
      <pubDate>Wed, 14 Sep 2016 07:32:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/enforce-revit-to-perform-potable-command-before-doing-the-rest/m-p/6560922#M63043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-14T07:32:03Z</dc:date>
    </item>
  </channel>
</rss>

