Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

@bradeneuropeArthur ,

 

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?

 

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

 

Many thanks.

Rafael