<?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 do something when a command is active in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503340#M34403</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option in api that allows us to do something when another command is active?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;I click on wall command and like to manually override the first pickpoint with my command/script.&lt;BR /&gt;That script of mine returns a calculated point, but this script can't be launched / button is greyed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I right to state that this behaviour (run script while other command is active) is not possible?&lt;BR /&gt;(Right click, snap overrides is possible, that behaviour can be mimicked?)&lt;/P&gt;</description>
    <pubDate>Sat, 09 May 2020 07:01:14 GMT</pubDate>
    <dc:creator>Joris.vd.Meulen</dc:creator>
    <dc:date>2020-05-09T07:01:14Z</dc:date>
    <item>
      <title>do something when a command is active</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503340#M34403</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an option in api that allows us to do something when another command is active?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;I click on wall command and like to manually override the first pickpoint with my command/script.&lt;BR /&gt;That script of mine returns a calculated point, but this script can't be launched / button is greyed out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I right to state that this behaviour (run script while other command is active) is not possible?&lt;BR /&gt;(Right click, snap overrides is possible, that behaviour can be mimicked?)&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 07:01:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503340#M34403</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2020-05-09T07:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: do something when a command is active</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503364#M34404</link>
      <description>&lt;P&gt;I don't know whether it is completely impossible; almost nothing is. It is probably extremely tricky, in any case, due to the single threaded nature of Revit and the restriction of the API to a valid API context, also running in the single thread.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 07:43:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503364#M34404</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-05-09T07:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: do something when a command is active</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503805#M34405</link>
      <description>&lt;P&gt;You could look at Command Binding, but if you already know one point because it's calculated, then why not just create a command that has the user pick the end point and then create the wall programmatically?&lt;/P&gt;</description>
      <pubDate>Sat, 09 May 2020 14:55:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9503805#M34405</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2020-05-09T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: do something when a command is active</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9504721#M34406</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3064449"&gt;@Sean_Page&lt;/a&gt;&amp;nbsp;because I'd like to create a multipurpose command, so it's not related to one command.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My simple scripts&lt;/P&gt;&lt;P&gt;asks for a base point&lt;/P&gt;&lt;P&gt;asks for two points&lt;/P&gt;&lt;P&gt;returns the midpoint of two user given points.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to use this script as I'm creating a wall, as I'm copying a piece of furniture, as I'm moving a curtain wall.&amp;nbsp;&lt;/P&gt;&lt;P&gt;(at the moment I run this script based upon a selection, but that is an extra step)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/413917"&gt;@jeremytammik&lt;/a&gt;&amp;nbsp;mentioned, I too stumbled upon some limitations. Perhaps I'm wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 May 2020 09:29:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/do-something-when-a-command-is-active/m-p/9504721#M34406</guid>
      <dc:creator>Joris.vd.Meulen</dc:creator>
      <dc:date>2020-05-10T09:29:31Z</dc:date>
    </item>
  </channel>
</rss>

