<?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: INV2022 Vault Load Fails after Unload in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10677707#M129830</link>
    <description>&lt;P&gt;Would this help:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub VaultAddIn()
    Dim strResponse As String
    strResponse = MsgBox("Yes=Load, No=Unload, Cancel=Do Nothing", vbYesNoCancel, "Do you want to load/unload Vault Add In?")
    Dim aai As ApplicationAddIn =ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
    Select Case strResponse
        Case vbYes
            aai.Activate
        Case vbNo
            aai.Deactivate
			aai= Nothing
    End Select
End Sub&lt;/LI-CODE&gt;</description>
    <pubDate>Sat, 09 Oct 2021 14:51:01 GMT</pubDate>
    <dc:creator>bradeneuropeArthur</dc:creator>
    <dc:date>2021-10-09T14:51:01Z</dc:date>
    <item>
      <title>INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10668370#M129626</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recently upgraded to 2022 cad from 2019. I have the following lines that I run to unload the Vault Add-in before subroutines to avoid all the vault "Do you want to check this out" prompts for each file, and then reload afterward.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub VaultAddIn()
    Dim strResponse As String
    strResponse = MsgBox("Yes=Load, No=Unload, Cancel=Do Nothing", vbYesNoCancel, "Do you want to load/unload Vault Add In?")
    
    Select Case strResponse
        Case vbYes
            ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Activate
        Case vbNo
            ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
    End Select
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the .Activate line is run, I get the following error. I used to get this error in INV2019 about 10% of the time, but now in 2022 I get it every single time. I want to add that I get this error when I have an assembly opened. If I open Inventor and no file is open, I can unload/load the vault addin as much as I want through the API with no errors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Runtime Error.png" style="width: 369px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/973643i7A9936E7D3652339/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Runtime Error.png" alt="Runtime Error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I load/unload via the GUI from Tools-&amp;gt;Add-Ins, the vault fails to load properly, again if an assembly is already opened. I can still check files in/out, but several ribbon buttons are missing from the Vault Tab. If I pull the GUI up again, it says the Vault Add-in is still unloaded. Below are some UI snips to display the odd behavior.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Vault Tab" style="width: 182px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/973646iC291F26A0351A025/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Vault Tab.png" alt="Vault Tab" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Vault Tab&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Context Menu, Extra &amp;quot;Vault&amp;quot;" style="width: 326px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/973648i3231B56E3A7F6A09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Context Menu.png" alt="Context Menu, Extra &amp;quot;Vault&amp;quot;" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Context Menu, Extra "Vault"&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed that the vault add-in is in the \ProgramData folder, while all the other add-ins are in \Program Files. Is this supposed to be here? Could the fact that this folder is Hidden be causing this problem? My user account has full admin privileges, and also running INV as admin makes no difference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help with this would be greatly appreciated. Many thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;&lt;P&gt;WIN10 x64 PRO, INV2022.1.1 PRO&lt;/P&gt;</description>
      <pubDate>Tue, 05 Oct 2021 18:16:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10668370#M129626</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-05T18:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10677707#M129830</link>
      <description>&lt;P&gt;Would this help:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Sub VaultAddIn()
    Dim strResponse As String
    strResponse = MsgBox("Yes=Load, No=Unload, Cancel=Do Nothing", vbYesNoCancel, "Do you want to load/unload Vault Add In?")
    Dim aai As ApplicationAddIn =ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")
    Select Case strResponse
        Case vbYes
            aai.Activate
        Case vbNo
            aai.Deactivate
			aai= Nothing
    End Select
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 09 Oct 2021 14:51:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10677707#M129830</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-09T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680294#M129883</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the response. That is fascinating. I referenced the addin with an object per your comment and now I get no error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There seems to be some changes to how VBA operates in this version. For example, I have public variables I use for Excel declared with this: Public oExcel As Object, oWorkbook As Excel.Workbook. I could create Excel applications and workbooks with no problems in INV2019 and INV2022. I then updated to INV2022.1.1, and my code kept failing on this line:&amp;nbsp;Set oWorkbook = oExcel.Workbooks.Add. Nothing had changed with my references, I only updated inventor. The way I got it to work again was changing how I declared the workbook object:&amp;nbsp;oWorkbook As Object. How can something like this be affected by an INV update?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again for the help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 12:29:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680294#M129883</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T12:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680331#M129885</link>
      <description>&lt;P&gt;This was doing the trick:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradeneuropeArthur_0-1633956763831.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975789i5EFC2C61DDE887B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradeneuropeArthur_0-1633956763831.png" alt="bradeneuropeArthur_0-1633956763831.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 12:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680331#M129885</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680887#M129893</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I actually got this same error again. In my implementation, I deactivate first, then active at the end. Here is my code. It is basically showing a userform that allows the user to pick the macro they want to run. Only certain macros need the vault add-in unloaded.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub UniversalNew()

strSoftwareName = "Abtex Inventor Suite " &amp;amp; strVersion

Dim boolUnloadVault As Boolean
boolUnloadVault = True

iActiveScreen = 0
CurrentEnvironmentNew = ActiveEnvironmentNew

SelectedProgramNew = vbNullString
UniversalFormComplete = False
UniversalFormCancelled = False

UserForm_Universal.Label_Message.Caption = vbNullString
UserForm_BillOfMaterial.Label_Message.Caption = vbNullString
UserForm_OtherMacros.Label_Message.Caption = vbNullString

UserForm_Universal.Caption = strSoftwareName
UserForm_BillOfMaterial.Caption = strSoftwareName &amp;amp; " - Bill of Material"
UserForm_OtherMacros.Caption = strSoftwareName &amp;amp; " - Other macros"

'Run Userform to collect information
UserForm_Universal.Show

Do Until UniversalFormComplete = True
    
DoEvents

Loop

If UniversalFormCancelled = True Then
    
    'MsgBox "User Cancelled. Click Okay to terminate."
    End
    
End If

Dim aai As ApplicationAddIn
Set aai = ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")

Select Case SelectedProgramNew

    Case "BOM"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
        Call ExportBOM.ExportBOM
    Case "Format BOM"
        Call FormatBOM.FormatBOM
    Case "Generate Thumbnails"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
        Call GenerateThumbnails.GenerateThumbnails
    Case "Generate Brush"
        Call MakeBrush_Tufted.TuftedBrush
    Case "Create GPN"
        Call FillProperties.CreateGPN
    Case "Finish"
        Call MakeFinish.MakeFinish
    Case "Toggle Part Number"
        Call ToggleColumnVisibility.TogglePartNumber
    Case "Determine Parents"
        Call FillProperties.DetermineParents
    Case "Rename Occurences"
        Call RenameOccurences.RenameOccurences
    Case "Export Drawings"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
        Call ExportDrawings.Main
    Case "Merge BOMs"
        Call MergeBOMs.MergeBOMs
    Case "Merge PDFs"
        Call OpenPDFSAM.OpenPDFSAM
    Case "Copy Sheet"
        Call CopySheet.IDW_DuplicateSheet
    Case "Add Part Number"
        Call AddPartNumber.AddPartNumber
    Case "Add Layer PN"
        Call AddPartNumber.AddLayerPN
    Case "Import Fastener"
        Call ImportFastener.ImportFastener
    Case "Delete Custom Properties"
        Call DeleteCustomProperties.DeleteCustomProperties
    Case "Adjust View"
        Call AdjustView.CallUserForm
    Case "Check Param and Rule"
        Call AddPartNumber.CheckParamAndRule
    Case Else
        MsgBox "An error has occured."
End Select

'Reactivate Vault is failing
If boolUnloadVault = True Then aai.Activate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Activate
Set aai = Nothing
'MsgBox "Ending program"
End
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea what might be happening? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 16:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680887#M129893</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680929#M129894</link>
      <description>I will have a look</description>
      <pubDate>Mon, 11 Oct 2021 16:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680929#M129894</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680977#M129897</link>
      <description>&lt;P&gt;Exact reverse:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Case "BOM"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
		aai= nothing
        Call ExportBOM.ExportBOM
    Case "Format BOM"
        Call FormatBOM.FormatBOM
    Case "Generate Thumbnails"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
		aai= nothing
        Call GenerateThumbnails.GenerateThumbnails
    Case "Generate Brush"
        Call MakeBrush_Tufted.TuftedBrush
    Case "Create GPN"
        Call FillProperties.CreateGPN
    Case "Finish"
        Call MakeFinish.MakeFinish
    Case "Toggle Part Number"
        Call ToggleColumnVisibility.TogglePartNumber
    Case "Determine Parents"
        Call FillProperties.DetermineParents
    Case "Rename Occurences"
        Call RenameOccurences.RenameOccurences
    Case "Export Drawings"
        If boolUnloadVault = True Then aai.Deactivate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Deactivate
		aai= nothing
        Call ExportDrawings.Main
    Case "Merge BOMs"
        Call MergeBOMs.MergeBOMs
    Case "Merge PDFs"
        Call OpenPDFSAM.OpenPDFSAM
    Case "Copy Sheet"
        Call CopySheet.IDW_DuplicateSheet
    Case "Add Part Number"
        Call AddPartNumber.AddPartNumber
    Case "Add Layer PN"
        Call AddPartNumber.AddLayerPN
    Case "Import Fastener"
        Call ImportFastener.ImportFastener
    Case "Delete Custom Properties"
        Call DeleteCustomProperties.DeleteCustomProperties
    Case "Adjust View"
        Call AdjustView.CallUserForm
    Case "Check Param and Rule"
        Call AddPartNumber.CheckParamAndRule
    Case Else
        MsgBox "An error has occured."
End Select

'Reactivate Vault is failing
If boolUnloadVault = True Then aai.Activate 'ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Activate

'MsgBox "Ending program"
End
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680977#M129897</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T17:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680990#M129899</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How will&amp;nbsp;aai.Activate work if the object aai is set to nothing beforehand?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:10:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10680990#M129899</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T17:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681003#M129901</link>
      <description>&lt;P&gt;you need to release the memory after unloading the add in.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:15:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681003#M129901</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T17:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681020#M129903</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get the following error because the object is not set at the line aai.Activate.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rcolon9E4ZX_0-1633973134242.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/975913i914E0FCAA52933FA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rcolon9E4ZX_0-1633973134242.png" alt="rcolon9E4ZX_0-1633973134242.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way seems to work though. I have executed multiple times in a row with no error.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim aai As ApplicationAddIn
Set aai = ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}")

aai.Deactivate
Set aai = Nothing

ThisApplication.ApplicationAddIns.ItemById("{48B682BC-42E6-4953-84C5-3D253B52E77B}").Activate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:28:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681020#M129903</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T17:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681043#M129904</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all the help. I have one last oddball that occurs now since the update to INV2022.1.1. I have the following snippets of code that I use to keep INV minimized while capturing thumbnails of multiple parts to prevent the cursor from highlighting faces. The screen still minimizes just fine, but then it pops up again on a file open. This did not happen in INV2022 prior to the update. Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public oApp As Inventor.Application
Set oApp = GetObject(, "Inventor.Application") 'Set reference to the running instance of Inventor

Call InventorScreen(oApp, False, False, True) ' Minimize Inventor and disable screen updates
----------------------------------------------------------------------------
Public Sub InventorScreen(ByRef oApp As Inventor.Application, Visible As Boolean, ScreenUpdating As Boolean, Minimized As Boolean)

If Visible = True Then
    oApp.Visible = True
    
ElseIf Visible = False Then
    oApp.Visible = False
End If

If ScreenUpdating = True Then
    oApp.ScreenUpdating = True
    'oApp.ActiveView.Update
    
ElseIf ScreenUpdating = False Then
    oApp.ScreenUpdating = False
End If

If Minimized = True Then
    oApp.WindowState = kMinimize
    
ElseIf Minimized = False Then
    oApp.WindowState = kMaximize
End If
    
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 17:38:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681043#M129904</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T17:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681083#M129906</link>
      <description>I will have a look again.</description>
      <pubDate>Mon, 11 Oct 2021 18:02:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681083#M129906</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681224#M129913</link>
      <description>&lt;P&gt;This will work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Public Sub Main()


Dim oApp As Inventor.Application
Set oApp = GetObject(, "Inventor.Application") 'Set reference to the running instance of Inventor

Call InventorScreen(oApp, False, False, True) ' Minimize Inventor and disable screen updates

End Sub
Public Sub InventorScreen(ByRef oApp As Inventor.Application, Visible As Boolean, ScreenUpdating As Boolean, Minimized As Boolean)

If Visible = True Then
    oApp.Visible = True
    
ElseIf Visible = False Then
    oApp.Visible = False
End If

If ScreenUpdating = True Then
    oApp.ScreenUpdating = True
    'oApp.ActiveView.Update
    
ElseIf ScreenUpdating = False Then
    oApp.ScreenUpdating = False
End If

If Minimized = True Then
    oApp.WindowState = kMinimize
    
ElseIf Minimized = False Then
    oApp.WindowState = kMaximize
End If
    
End Sub
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 19:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681224#M129913</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2021-10-11T19:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: INV2022 Vault Load Fails after Unload</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681299#M129918</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what you changed, aside from placing the snippets with a Public Sub. I have the Public variable declared above my main function, and the Set oApp and Call InventorScreen lines within the Main subroutine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Rafael&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2021 20:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inv2022-vault-load-fails-after-unload/m-p/10681299#M129918</guid>
      <dc:creator>rcolon9E4ZX</dc:creator>
      <dc:date>2021-10-11T20:03:06Z</dc:date>
    </item>
  </channel>
</rss>

