Checking to see if there is an active Pop up window/Error window?

Checking to see if there is an active Pop up window/Error window?

garrettfulghum
Contributor Contributor
667 Views
3 Replies
Message 1 of 4

Checking to see if there is an active Pop up window/Error window?

garrettfulghum
Contributor
Contributor

Is there a way to check if there is a window that has popped up when running a program? My current application is an external program sending code to inventor. In common cases, pop windows have occurred when opening\saving\changing LOD, etc...

 

I have tried doing some of the 'Quiet Saves' and 'Quiet Opens' but I would like to know if there is a sure fire way of checking to see if there is an active window that requires user input. Mainly because the program/operation takes a bit and I find myself walking away from my keyboard and coming back to an inventor message/popup that has prevented the program from continuing.

 

Since I'm using a 3rd party program, would it be possible to access the computers processes and see if there is an active window???

 

Any help/Advice would greatly be appreciated!

0 Likes
Accepted solutions (1)
668 Views
3 Replies
Replies (3)
Message 2 of 4

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Hi,

Kill the running process?

with:

Try
            For Each p In Process.GetProcesses

                If p.ProcessName = "YOUR PROCESS NAME" Then

                        p.Kill()
                   
                End If
            Next
        Catch ex As Exception

        End Try

Regards,

Autodesk Software: Inventor Professional 2018 | Vault Professional 2018 | Autocad Mechanical 2018
Programming Skills: Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
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 !

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


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:
My 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 !


 


EESignature

0 Likes
Message 3 of 4

garrettfulghum
Contributor
Contributor

So I tried what you said and cant seem to find the certain process correlating to the popup-save window.

0 Likes
Message 4 of 4

garrettfulghum
Contributor
Contributor

Wait a minute, there is a [skipDocumentSave] in part with the activating the LOD! Didn't even cross my mind! Sorry for the confusion!

0 Likes