<?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 Revit Maintaining ExternalApplication Status in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7028940#M58968</link>
    <description>&lt;DIV&gt;I working on sample login application in Revit&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Requirement:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Revit tab has two Push-buttons, Login and upload&lt;/DIV&gt;&lt;DIV&gt;- Login: Opens a window form where one can enter username and password and get validated from API.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I have created ExternalCommand for this login(dll) and hooked it in ExternalApplication.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Now, how can I keep track of logged in status, so that next time he don't have to login again?&lt;/DIV&gt;&lt;DIV&gt;- Also depending the logged in status I have to enable/disable upload &amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Thu, 20 Apr 2017 08:58:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-20T08:58:19Z</dc:date>
    <item>
      <title>Revit Maintaining ExternalApplication Status</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7028940#M58968</link>
      <description>&lt;DIV&gt;I working on sample login application in Revit&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Requirement:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;- Revit tab has two Push-buttons, Login and upload&lt;/DIV&gt;&lt;DIV&gt;- Login: Opens a window form where one can enter username and password and get validated from API.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; I have created ExternalCommand for this login(dll) and hooked it in ExternalApplication.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; Now, how can I keep track of logged in status, so that next time he don't have to login again?&lt;/DIV&gt;&lt;DIV&gt;- Also depending the logged in status I have to enable/disable upload &amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Thu, 20 Apr 2017 08:58:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7028940#M58968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-20T08:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Maintaining ExternalApplication Status</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7030062#M58969</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;You need to look at IExternalCommandAvailability for enable/disable.&lt;/P&gt;
&lt;P&gt;As for retaining login status? Depends on the scope. Forever = file or registry. Revit session = application singleton property. Document = parameter or extensible&amp;nbsp;storage. Lots of possibilities.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 15:25:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7030062#M58969</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-20T15:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Maintaining ExternalApplication Status</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032086#M58970</link>
      <description>&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;The scope I'm looking for is 'Forever', I'm new to plugin development; can you please point me towards how I can achieve this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 06:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032086#M58970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T06:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Maintaining ExternalApplication Status</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032290#M58971</link>
      <description>&lt;P&gt;Hi @Anonymous,&lt;/P&gt;
&lt;P&gt;You probably want to use the Registry then. (Well, it's a relatively&amp;nbsp;easy way, at least!)&lt;/P&gt;
&lt;P&gt;This link gives tips:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.c-sharpcorner.com/UploadFile/f9f215/windows-registry/" target="_blank"&gt;http://www.c-sharpcorner.com/UploadFile/f9f215/windows-registry/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You will likely&amp;nbsp;need to read/write to the CurrentUser/HKEY_CURRENT_USER branch.&lt;/P&gt;
&lt;P&gt;Stay away from deleting anything until you are *sure* what you are doing.&lt;/P&gt;
&lt;P&gt;RegEdit is a good way to manually check/edit the registry, and also allows you to back it up.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 08:15:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032290#M58971</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2017-04-21T08:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Revit Maintaining ExternalApplication Status</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032416#M58972</link>
      <description>&lt;P&gt;Thank you for the Answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 09:06:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-maintaining-externalapplication-status/m-p/7032416#M58972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-21T09:06:30Z</dc:date>
    </item>
  </channel>
</rss>

