Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
376 Views, 2 Replies

Inventor save to folder named by date automation

Hello everyone,

 

I would like to make Inventor save in folder, that is named by year and mounth, automatically.

 

For example, file is created 6.6.2015, when user click save button it saves file on location:

 

\2015\06\new_file...

 

What are posibilities, datastandard?

 

I'm not familiar with DataStandard, cuuld enyone give some tips, steps, for configuration?

 

configuration:

Inventor 2016 SP2

Vault 2016

 

Thanks for any advice,

Gregor Rihtar

JoAntt
in reply to: Anonymous

Create a new projekt file for each day that have the workspace path pointing at the folder you want.

 

or use ilogic to copy the new file to a folder with todays date.

 

If you want inventor to save in a new directory each day without any "hands on" you have to make a addin.

wayne.brill
in reply to: JoAntt

Hi,

 

I would suggest looking at this event: FileUIEvents.OnFileSaveAsDialog

 

From the programming help:

>> >>

Remarks
This notification is also sent when the Save command is executed the first time for a file that has not been previously saved. By responding to this event the client can override Inventor's standard behavior of displaying the Save As dialog and provide their own interface to determine the new filename.

<< <<

 

Your code could get the current date and create the folder with the name that you want. I am not finding an existing example that does this but I believe it could meet your requirement. 

 

There are several posts on this forum related to the OnFileSaveAsDialog event.

 

Thanks,

Wayne

 



Wayne Brill
Developer Technical Services
Autodesk Developer Network