Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
when we call &today's_date parameter in drawing it takes the value as todays date. but when we check the properties of parameter it has became hard cord as mm-dd-yy instead of &today's_date. that means if we modify the file still it will referring the old date instead of newly modified date.
Is this for prints? (.drw's?)
No, It should be in .frm file or drw file.
This post is currently located in an odd place on the community. Are you using Creo Parametric? If yes, are you interfacing with Windchill or is Creo being used completely stand-alone?
No interface with windchill. stand alone Creo parametric
I think you're misunderstanding the purpose of &todays_date. It's not a parameter. It a token that is evaluated only once, either when it's added to a drawing or when a drawing is created from a template/format. During evaluation the token is replaced with the current date. Without Windchill, there is no way to display a dynamic date on a drawing (one that automatically updates) or any way to automatically display the last time something changed. The best you can do is create a mapkey that replaces a note or table cell's text with a new copy of &todays_date.
On my drawings I have a parameter called &TODAY_DATE
to update it I run the map key at the bottom
the first part of the mapkey will get the system current date format it and then is copied to the clipboard
then it is pasted on the corresponding place in the parameters
(i run DATA_DATE for the mapkey as they are two nested)
mapkey copy_date @MAPKEY_LABELcopy date;\
mapkey(continued) @SYSTEMset datestr=\%date:\~4,2\%-\%date:\~7,2\%-\%date:\~12,2\%\necho \
mapkey(continued) \%datestr\% | clip;
mapkey datasheet_par_date @MAPKEY_LABELDATA SHEET PAR DATE;~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\
mapkey(continued) ~ Command `ProCmdDwgParameters` ;\
mapkey(continued) ~ Arm `relation_dlg` `ParamsPHLay.ParTable` 2 `rowTODAY_DATE` `value`;\
mapkey(continued) ~ Disarm `relation_dlg` `ParamsPHLay.ParTable` 2 `rowTODAY_DATE` `value`;\
mapkey(continued) ~ Select `relation_dlg` `ParamsPHLay.ParTable` 2 `rowTODAY_DATE` `value`;\
mapkey(continued) ~ Key `relation_dlg` `ParamsPHLay.ParTable` 39190550 `Ctrl+V`;\
mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;
mapkey DATA_DATE %copy_date;%datasheet_par_date;
thanks
OG
can you share , mapkey DATA_DATE as well ?