<?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: How to Call Revit Purge Button from the API in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7522785#M54988</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't try it, but there is a PostableCommand.PurgeUnused. I think something like this should work:&lt;/P&gt;&lt;PRE&gt;var commandId = RevitCommandId.LookupPostableCommandId(PostableCommand.PurgeUnused);

uiApp.PostCommand(commandId);&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Nov 2017 07:25:57 GMT</pubDate>
    <dc:creator>aignatovich</dc:creator>
    <dc:date>2017-11-07T07:25:57Z</dc:date>
    <item>
      <title>How to Call Revit Purge Button from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7522679#M54987</link>
      <description>&lt;P&gt;Hello there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a plugin to detached a document from central and when its done it will be purged as well. I'm struggling writing the code for purge, I'm thinking to &lt;STRONG&gt;call the Revit Purge button from the code&lt;/STRONG&gt;. If it is possible, would appreciate the support or maybe share the code for writing the purge command in the API.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 06:41:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7522679#M54987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-07T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Revit Purge Button from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7522785#M54988</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't try it, but there is a PostableCommand.PurgeUnused. I think something like this should work:&lt;/P&gt;&lt;PRE&gt;var commandId = RevitCommandId.LookupPostableCommandId(PostableCommand.PurgeUnused);

uiApp.PostCommand(commandId);&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 07:25:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7522785#M54988</guid>
      <dc:creator>aignatovich</dc:creator>
      <dc:date>2017-11-07T07:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Revit Purge Button from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7538081#M54989</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1257478"&gt;@aignatovich&lt;/a&gt;&amp;nbsp;Thanks for sharing the code. it worked&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 05:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/7538081#M54989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-13T05:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Call Revit Purge Button from the API</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/9570565#M54990</link>
      <description>&lt;P&gt;Also worth doing a search!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Check out this one for a non-postcommand solution:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/m-p/6431564" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/m-p/6431564&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 21:35:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-call-revit-purge-button-from-the-api/m-p/9570565#M54990</guid>
      <dc:creator>matthew_taylor</dc:creator>
      <dc:date>2020-06-09T21:35:48Z</dc:date>
    </item>
  </channel>
</rss>

