Shortcut for Save All and Close All

Shortcut for Save All and Close All

Anonymous
Not applicable
2,110 Views
4 Replies
Message 1 of 5

Shortcut for Save All and Close All

Anonymous
Not applicable

Hi, do you know two shortcuts (button, buttons combination, iLogic codes) to execute:

 

1) the command "Save All":

 

Save All.png

 

2) and the command "Close All":

 

Close All.png

 

so that, for command "Close All", Inventor automatically sets the option "Prompt only once per operation" when the following window appears:

 

Popup after Close All.png

 

and Inventor automatically chooses "Yes to All" in the following window:

 

Yes to All as default.png

 

?

 

Thanks

0 Likes
Accepted solutions (2)
2,111 Views
4 Replies
Replies (4)
Message 2 of 5

clutsa
Collaborator
Collaborator
Accepted solution

So the code for Save all And close all looks something like this.

Dim app As Inventor.Application = ThisApplication
saveCmd = app.CommandManager.ControlDefinitions("AppSaveAllCmd")
closeCmd = app.CommandManager.ControlDefinitions("AppCloseAllCmd")
saveCmd.Execute
closeCmd.Execute

As for the settings you can try your Application Options>Prompts>"Do you want to save the file on close?" to "Once per Operation" and Application Options>Save>"Do not list referenced files that default to 'No' in the Save dialog"

 

 

 

 

If I've helped you, please help me by supporting this idea.
Mass Override for Each Model State

Custom Glyph Icon for iMates

Message 3 of 5

Anonymous
Not applicable

Hi @clutsa, sorry for delay, thank you, it works! But how to know the name of all Inventor commands, like "AppSaveAllCmd" or "AppCloseAllCmd"? Does exist a iLogic help guide about them?

Thank you

0 Likes
Message 4 of 5

bradeneuropeArthur
Mentor
Mentor
Accepted solution

Read this

https://forums.autodesk.com/t5/inventor-customization/available-api-commands/m-p/7784864/thread-id/8...

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

Message 5 of 5

Anonymous
Not applicable

Hi @bradeneuropeArthur, good to know, thank you!

Regards

0 Likes