any way to see when an drawing is last save ?

any way to see when an drawing is last save ?

Darkforce_the_ilogic_guy
Advisor Advisor
1,111 Views
3 Replies
Message 1 of 4

any way to see when an drawing is last save ?

Darkforce_the_ilogic_guy
Advisor
Advisor

I need the last day an drawing was save. I use Datelastmodified 

 

 

but that does not work if an files is downloaded  from vault sind that date will  be sat to the download date and not last time it was save.. Createdate seems to be lock to last time if was check in , så I can not use that ... you see if I have make an change after  and have not check it is jet.. any idears ?

Dim oDate1 As DateTime


oFS = CreateObject("Scripting.FileSystemObject")
'Dato for hvornår den sidste er blevet ændret 
oDate1 = oFS.GetFile(idwPathName).DateLastModified

 

0 Likes
1,112 Views
3 Replies
Replies (3)
Message 2 of 4

GosponZ
Collaborator
Collaborator

I have this rule to run on before save document. As soon as you click save it change date to current date. Hope will help you

'set Author iproperty to match the system user name
iProperties.Value("Summary", "Author" ) = ThisApplication.GeneralOptions.UserName
'iProperties.Value("Project", "Designer" ) = ThisApplication.GeneralOptions.UserName
'set the Creattion Date iproperty to the current date
'iProperties.Value("Status", "Mfg. Approved Date") = Now
iProperties.Value("Project", "Creation Date" ) = Now
'update the file
iLogicVb.UpdateWhenDone = True

 

Message 3 of 4

WCrihfield
Mentor
Mentor

Here is something fairly simple you may be able to use:

oDoc = ThisDoc.Document
oFileLastWriteTime = System.IO.File.GetLastWriteTime(oDoc.FullFileName)
MsgBox("File Last Write Time = " & oFileLastWriteTime, , "File Last Write Time")

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS :bulb: or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 4 of 4

Darkforce_the_ilogic_guy
Advisor
Advisor

That does not work.  because it still show when if was downloaded to my drev form vault.  

the files does have a custom properties Last Saving date.. the problem is that I need to know it without open it . Because my current code .. have an date input form the user.. then the first code ... open all files neweste then the date ... and then open the IDW file and run a new ilogic code to get it to save that file as pdf..

 

then problem I have I do not know any way to read this before it is open ... and I do not know at way to read the user input form the second ilogic code. 

 

 

 

bt_0-1652332317057.png

 

 

 

 

0 Likes