<?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: PostCommand cannot launch external command if it is invisible in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/postcommand-cannot-launch-external-command-if-it-is-invisible/m-p/5720740#M71522</link>
    <description>I may be wrong due to lack of other information, but this looks like an incorrect problem to solve. Taking aside the need of hiding a command from the end user (one may wonder why to have such a command at all), the desire to invoke by posting a command that my application owns and installed seems ill-designed. If I have an add-in from which I register an external command, then the command (and its code) belongs to the add-in. Thus, if I am later executing some other procedure in the same add-in (e.g. an event, etc.), I should be free to reach to the code the executes the external command too. At least in theory there is no need ever to post my own command. It must be even possibly to reach a command from a different add-in, providing one knows what to looks for. After all, all add-ins are loaded within the same application domain.&lt;BR /&gt;&lt;BR /&gt;(By the way, I am slightly surprised that posting external commands actually works; in my opinion, it should not.).&lt;BR /&gt;&lt;BR /&gt;Arno?t</description>
    <pubDate>Wed, 15 Jul 2015 14:33:24 GMT</pubDate>
    <dc:creator>arnostlobel</dc:creator>
    <dc:date>2015-07-15T14:33:24Z</dc:date>
    <item>
      <title>PostCommand cannot launch external command if it is invisible</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/postcommand-cannot-launch-external-command-if-it-is-invisible/m-p/5718331#M71521</link>
      <description>&lt;P&gt;I tried to use PostCommand API to execute an external command created by using PushButtonData. Now problem is, I don't want user to see it in Revit Ribbon, so I set its Visible to false; after that, PostCommand to run the external command will not work any more.&amp;nbsp;&lt;SPAN style="line-height: 15px;"&gt;Don't know why.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is, create an external command invisible to user, but it can be called by other functions using PostCommand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:29:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/postcommand-cannot-launch-external-command-if-it-is-invisible/m-p/5718331#M71521</guid>
      <dc:creator>Raymond_Fan</dc:creator>
      <dc:date>2015-07-14T13:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: PostCommand cannot launch external command if it is invisible</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/postcommand-cannot-launch-external-command-if-it-is-invisible/m-p/5720740#M71522</link>
      <description>I may be wrong due to lack of other information, but this looks like an incorrect problem to solve. Taking aside the need of hiding a command from the end user (one may wonder why to have such a command at all), the desire to invoke by posting a command that my application owns and installed seems ill-designed. If I have an add-in from which I register an external command, then the command (and its code) belongs to the add-in. Thus, if I am later executing some other procedure in the same add-in (e.g. an event, etc.), I should be free to reach to the code the executes the external command too. At least in theory there is no need ever to post my own command. It must be even possibly to reach a command from a different add-in, providing one knows what to looks for. After all, all add-ins are loaded within the same application domain.&lt;BR /&gt;&lt;BR /&gt;(By the way, I am slightly surprised that posting external commands actually works; in my opinion, it should not.).&lt;BR /&gt;&lt;BR /&gt;Arno?t</description>
      <pubDate>Wed, 15 Jul 2015 14:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/postcommand-cannot-launch-external-command-if-it-is-invisible/m-p/5720740#M71522</guid>
      <dc:creator>arnostlobel</dc:creator>
      <dc:date>2015-07-15T14:33:24Z</dc:date>
    </item>
  </channel>
</rss>

