Getting creation and modified date in ilogic

Getting creation and modified date in ilogic

Anonymous
Not applicable
2,848 Views
3 Replies
Message 1 of 4

Getting creation and modified date in ilogic

Anonymous
Not applicable

Hi,

 

I'm currently working on automating our numbering system for standard parts. I've come a long way but I'm need one more thing. We export and import some information and iproperties from a excel file to ilogic. I would like to export the creation date and modified date property to excel. So the guys in the workshop can chek if they have the latest version of the drawing. These can be found on the general tab. But when I try I get an error saying that the general tab is not available. Is there a way to get this information?

0 Likes
Accepted solutions (1)
2,849 Views
3 Replies
Replies (3)
Message 2 of 4

Owner2229
Advisor
Advisor
Accepted solution

Hi, the general informations are the basic Windows style file informations, so to acces them you have to use the file.

 

Dim strFileName As String
strFileName = ThisDoc.Document.FullFileName
Dim oFS As Object oFS = CreateObject("Scripting.FileSystemObject") Dim oDate1 As String Dim oDate2 As String oDate1 = oFS.GetFile(strFileName).DateLastModified oDate2 = oFS.GetFile(strFileName).DateCreated

 

Consider using "Accept as Solution" / "Kudos" if you find this helpful.
- - - - - - - - - - - - - - -
Regards,
Mike

"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live." - John F. Woods
Message 3 of 4

Anonymous
Not applicable

Works like a charm!

Thanks for the fast reply!

0 Likes
Message 4 of 4

Anonymous
Not applicable
Hi, very well done. thank you.
is there a way to edit the date format? actually there is the time too and I realy don't need that..

thank you
0 Likes