10-11-2021
12:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
10-11-2021
12:19 PM
This will work:
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
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !