Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9069

Re: Scripts return system epoch date from repository

$
0
0

In response to:

Checked out ENVentory LDM, Moved an entity in the diagram, checked it in.

Reran the script. Results:

Scanning the folder Enventory

Extracting ENVentory CDM Date 12/31/1969 7:00:00 PM

Extracting ENVentory LDM Date 5/19/2016 2:58:53 PM

Extracting ENVentory PDM Date 12/31/1969 7:00:00 PM

Extracting Enventory Date 2/5/2016 11:11:18 PM

 

Note that the Creation Date for the LDM has been changed to today (the date MODIFIED)

Also, the Creation Date for the folder is now returned.

 

My experience has been that the creation date displayed, is the creation date for the VERSION, not the creation date for the MODEL.  Which is why it is the same as the modified date. 

 

I was creating an excel model inventory,

   WriteCell objS1, intRC, "C", subObject.GetRepositoryAttribute("CreationDateInRepository")      

     '* RepositoryBaseObject property VERSION creation date

   WriteCell objS1, intRC, "D", subObject.GetRepositoryAttribute("ModificationDateInRepository")

     '* RepositoryBaseObject property VERSION modification date

 

and was able to get the non-epoch date using the GetRepositoryAttribute method.

 

I'm looking for a way to circle around to version 1 to get the true creation date for the model.

 

Jane


Viewing all articles
Browse latest Browse all 9069

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>