Setting to always ask for exit/quit confirmation?

Setting to always ask for exit/quit confirmation?

jeffg28CLY
Collaborator Collaborator
654 Views
4 Replies
Message 1 of 5

Setting to always ask for exit/quit confirmation?

jeffg28CLY
Collaborator
Collaborator

Hello all,

I'm new to Inventor, doing the 30-day trial to see if I want to switch to Inventor from Wildfire/Creo.


Customization question: Is there an option to make it so that I always get an "Are you sure?" confirmation window before exiting the program?

Sometimes my twitchy hand makes a wrong click, sometimes I bump my Alt+F4 shortcut mouse button, sometimes the cursor doesn't quite make it to the right monitor....

If all active files are saved, the program will just close, no questions asked. The files are all safe, but then I have to wait for the program to load back up again, and reload whatever files I had open.

I do see a list of Prompt Texts in Application Options...but I'm not seeing anything for exit/quit confirmation.

Two things about that: 1) A keyword search tool would be nice here, similar to Creo's search tool for its config.pro options. 2) The Prompt Text column entries have a lot of nice and descriptive text. If I resize the Application Options window to fit all the text for easier reading and less scrolling, the text box itself does not scale with the window.

 

 

0 Likes
Accepted solutions (1)
655 Views
4 Replies
Replies (4)
Message 2 of 5

CCarreiras
Mentor
Mentor
Accepted solution

Hi!

 

No option for that.

CCarreiras

EESignature

0 Likes
Message 3 of 5

jeffg28CLY
Collaborator
Collaborator

Darn.

I guess I can put a similar post over in the Ideas section then, since this post did include something of a bug report too, for the window resizing.

 

Not to make the always-confirm thing mandatory either, as I know plenty of programs don't ask for confirmation. Having the option available would be nice though. I've added that sort of close-resistance to both Firefox and Outlook for the same reasons: Long load time, and/or losing my place when I'm working on something due to an accidental program closure.

0 Likes
Message 4 of 5

DRoam
Mentor
Mentor

Kind of a silly workaround, but what you could do is this: whenever you start Inventor, start off by creating a new "dummy" Part file, and turn on the visibility of one of the Origin planes (this will "dirty" the file so it needs a save). Then just leave the dummy part open throughout your session. If you ever try to close Inventor, even if all of your other files are saved, Inventor will prompt you before closing to ask if you want to save the dummy Part file.

 

If you have Inventor 2018 or newer, I wrote a quick rule that will automate this for you. Just save it in one of your External Rule locations, then place it under the "New Document" and "After Open Document" triggers for "All Documents". After doing this, the first document you open or create during a new Inventor session will trigger the rule to create a dummy part file and set it to dirty, essentially causing Inventor to always prompt you before exiting.

 

Hope this helps you until a built-in option is implemented.

 

oProjectFile = ThisApplication.FileLocations.FileLocationsFile
oProjectPath = Left(oProjectFile, InStrRev(oProjectFile, "\"))

oDummyFileName = System.IO.Path.Combine(oProjectPath & "DirtyDocDummy.ipt")

Dim oDummyDoc As Inventor.PartDocument

Try
	oDummyDoc = ThisApplication.Documents.ItemByName(oDummyFileName)
Catch
	'Dummy doc not yet created. Create it.
	
	'First get the current active document. This will be the document that was
	'opened or created and triggered the Dummy Doc Create rule to run.
	'We want to capture this document so we can re-activate it after creating the dummy doc.
	Dim oActiveDoc As Inventor.Document = ThisApplication.ActiveDocument
	
	'Now create the dummy doc.
	oDummyDoc = ThisApplication.Documents.Add(DocumentTypeEnum.kPartDocumentObject, , True)
	oDummyDoc.FullFileName = oDummyFileName
	
	'Dummy doc created. Set it to dirty.
	oDummyDoc.Dirty = True
	
	'Restore the previously active document.
	If Not oActiveDoc Is Nothing Then oActiveDoc.Activate
End Try

 

 

 

0 Likes
Message 5 of 5

jeffg28CLY
Collaborator
Collaborator

That workaround reminds me of something I saw for Chrome: Chrome will also just cheerfully close when instructed, without any confirmation, and I don't know that there's any ability to change that behavior.

One workaround I saw is to have a special tab always loaded, which I think was a locally-stored page with some Javascript in it, which would pop up its own box if Chrome was trying to close.

 

I'll have to give this workaround a shot, thank you for that.

 

This is Inventor 2019 I'm using - I'm doing the 30-day trial at this point. The Design & Manufacturing package has a lot of nice tools in it, and the price is enticing. It's looking like there'll be a "learning curve" just with the UI itself, aside of how the software is structured versus Wildfire/Creo.

 

 

0 Likes