cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Viewing System Parameters

Participant

Viewing System Parameters

Is there any way to see the value of a system parameter, like DATE_CREATED, in the interface? I tried adding a note &DATE_CREATED to the model but that didn't work and when I tried to set a parameter equal to &DATE_CREATED I got a relation error.  Where is this information hiding???

6 REPLIES 6

Re: Viewing System Parameters

The best you can do it enter &todays_date in a note or table cell.  It will immediately evaluate to the current date and then become "dead text".  (It won't update in the future.)  Unfortunately Creo has never provided an out of the box way to read the current system date or time in any parametric usable fashion.

If you have Windchill then you can extract a "last modified" date and time from it's parameters (via Creo).

Note: See this discussion for how to put &todays_date in a drawing template so it will automatically populate each time a new drawing is created from it:

Re: Parameters in drawing templates

Re: Viewing System Parameters

Thanks for the information Tom. Unfortunately, I'm trying to use the "DATE_CREATED" information to evaluate a condition in order to run ModelCHECK, so I need the date the file was created. I went searching through a .prt file to see if it was readable in the header but it appears that it isn't. I wonder what's the big secret with this information? Why is it so hidden???

Re: Viewing System Parameters

No idea.  Your only real solution at the moment is to either have the users manually enter this information into a parameter when creating the models or build some type of customization that automatically enters it for you (Toolkit, etc.)

Re: Viewing System Parameters

Are you using Windchill for your part storage?

The created and last modified date are stored in Windchill.

You may be able to modify your start part file to grab the current date and store it.

Re: Viewing System Parameters

Rosemary,

You can use the Windchill information as Ben mentioned above, but if you're not using Windchill, you can get the last modified date information from the file history.  Use the TOOLS tab > INVESTIGATE group fly down > FILE HISTORY and write the file to disk.  You can write a small program to extract the date, time, etc. from that file into a parameter (or relation) in your model, or if you display the history information on screen, you can cut and paste the data into a parameter.  If you use the program to set the parameter, you can incorporate it into a "run ModelCHECK mapkey" so the parameter is updated each time before ModelCHECK actually runs.

Regards,

Dan N.

Re: Viewing System Parameters

Thanks for the information everyone. We're not using Windchill but I'm trying to teach the concepts of setting up conditions to be run based on model information.  For example, if the model was created before January 01, 2002 - run this set of checks because that was the company standard at that time.  This has made me realize that using the date the last time the model was saved might work - since it will be upgrading the model to the version that was in use.  Which leads to my next caveat - that you also can't find the "datecode" that the model was saved in.  Again, this used to be something that ModelCHECK could use for evalutation puposes but I'm not sure its valid since PTC went to the "MXXX" build format for naming versions.

Announcements
LiveWorx Call For Papers Happening Now!