Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

kFileSaveCommand

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
271 Views, 2 Replies

kFileSaveCommand

I have the following line of code in a vba macro that calls up a "save copy as" command dialog box.

ThisApplication.CommandManager.StartCommand kFileSaveCopyAsCommand

Is there a command for "save" only?

eg, something like...

ThisApplication.CommandManager.StartCommand kFileSaveCommand

Basically, when running a vba macro, if the part has not been saved, then I would exit the macro.
I want the user to simply have the choice to save the part prior to carrying on with the macro.
Thanks in advance!!!
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

ThisApplication.ActiveDoc.Save

 

Kathy Johnson
Message 3 of 3
Anonymous
in reply to: Anonymous

You can also use the Close method letting the
single argument default to False.  This means that if the document is
dirty, the dialog will be displayed to the end-user asking them if they want to
save it or not.  If the argument is set to True it will close it and lose
and any changes.
--
Brian Ekins
Developer Technical Services,
Autodesk
Discussion Q&A:
href="http://www.autodesk.com/discussion">http://www.autodesk.com/discussion



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">

ThisApplication.ActiveDoc.Save

 

Kathy
Johnson

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report