<?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 Undo Checkout of All (Inventor) Suppressed Components in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9794307#M116765</link>
    <description>&lt;P&gt;Hey Markus, thanks for the reply. I was actually looking into that same method but couldn't figure out how to do the undo checkout of specific occurrences. From what I saw, running that execute, would check-in all the components unless each component is opened individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that what you meant by "activate each component"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, I was concerned that would drain a lot of resources (not sure if that's true), hence why I was looking for a way to specify the component for the Undo Checkout. From what I can tell, there is no way to do that, except for perhaps adding a new class that will connects to&amp;nbsp;Vault via the Vault API and specify which file to Undo Checkout.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Oct 2020 16:45:02 GMT</pubDate>
    <dc:creator>shiftctrl.io</dc:creator>
    <dc:date>2020-10-09T16:45:02Z</dc:date>
    <item>
      <title>How to Undo Checkout of All (Inventor) Suppressed Components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9791828#M116749</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I posted the following question on the &lt;A href="https://forums.autodesk.com/t5/inventor-customization/undo-checkout-of-all-suppressed-occurrences/td-p/9790047" target="_blank" rel="noopener"&gt;Inventor Customization forum&lt;/A&gt;, though haven't received a response, so wondering if this is the right place to ask.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a method in a C# application which will delete all suppressed occurrences from an assembly, however I need to add some logic to first undo checkout of the suppressed components prior to the delete operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public static void DeleteSuppressedOccurrences(Document document)
{
    if ((int)document.DocumentType != Enum.AssemblyDocument) return;
    var assyDoc = (AssemblyDocument)document;
    var assyOccs = assyDoc.ComponentDefinition.Occurrences;
    foreach (ComponentOccurrence occ in assyOccs)
    {
        if (occ.Suppressed)
        {
            occ.Delete();
        }
    }
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Oct 2020 15:45:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9791828#M116749</guid>
      <dc:creator>shiftctrl.io</dc:creator>
      <dc:date>2020-10-08T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Undo Checkout of All (Inventor) Suppressed Components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9793049#M116750</link>
      <description>&lt;P&gt;I suggest activating each occurrence and call the UI command to Undo Checkout like this&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;{
    Inventor.Application mApp = ThisApplication;
    Inventor.ControlDefinition mControlDef;
    mControlDef = mApp.CommandManager.ControlDefinitions.Item("VaultUndoCheckoutTop");
    mControlDef.Execute2(true);
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 05:53:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9793049#M116750</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2020-10-09T05:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Undo Checkout of All (Inventor) Suppressed Components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9794307#M116765</link>
      <description>&lt;P&gt;Hey Markus, thanks for the reply. I was actually looking into that same method but couldn't figure out how to do the undo checkout of specific occurrences. From what I saw, running that execute, would check-in all the components unless each component is opened individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that what you meant by "activate each component"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If so, I was concerned that would drain a lot of resources (not sure if that's true), hence why I was looking for a way to specify the component for the Undo Checkout. From what I can tell, there is no way to do that, except for perhaps adding a new class that will connects to&amp;nbsp;Vault via the Vault API and specify which file to Undo Checkout.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 16:45:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9794307#M116765</guid>
      <dc:creator>shiftctrl.io</dc:creator>
      <dc:date>2020-10-09T16:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to Undo Checkout of All (Inventor) Suppressed Components</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9797083#M116796</link>
      <description>&lt;P&gt;Yes, that was what I meant; the command handles the "top" document or the "active" one from an API perspective. Either edit the occurrence or open it to apply the command.&lt;/P&gt;
&lt;P&gt;I doubt, that doing this via Vault server calls outperformed this approach as you need multiple steps doing it and refreshing Inventor.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 06:37:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-undo-checkout-of-all-inventor-suppressed-components/m-p/9797083#M116796</guid>
      <dc:creator>Markus.Koechl</dc:creator>
      <dc:date>2020-10-12T06:37:46Z</dc:date>
    </item>
  </channel>
</rss>

