Skip to main content
Dale_Rosema
23-Emerald III
July 3, 2012
Solved

Adding today's date to a table

  • July 3, 2012
  • 2 replies
  • 17993 views

Hopefully this is a simple one just before a holiday.

I have a table that I update everyday to correct the date for the current (today's) date.

I use is up to 30X per day, so I save it to reduce the re-entering of the date.

Is there a way to save the table with a field or parameter so that when I bring it back in, it will automatically put in today's date?

I have done this before with sheet set ups, but not with a specific table.

Thanks,

Dale

    Best answer by Kevin

    Just got the results from what I tried and it worked. If you want to insert a table from a file that inserts the date when you put it on a drawing you need to create and save the table from within the FORMAT environement.

    The second thing I tried was in response to people wanting a date that updated each day for keeping track of drawing changes. Although this doesn't update automatically with a refresh of the drawing sheet but it does work for updating the date each day. I created a variable text note symbol for the date. The variable text variable uses the &todays_date parameter as a predefined value. You can place this on a drawing although it can't be directly inserted into a table. To update the date select the symbol text and double click on it and a parameter value dialog will open with the current days date. You can also just double click on the text symbol or use the right mouse menu to open the symbol properties dialog box. Selecting okay will cause the date to update. If you type in a value it causes the value to no longer update with &todays_date but keeps the last value entered. You can open the symbol properties dialog and change it use &todays_date again. I tired this in WF5 and Creo 1.

    2 replies

    1-Visitor
    July 3, 2012

    Hello Dale, you can create a parameter named "&todays_date" in the table .

    Thanks!

    Hugo

    Dale_Rosema
    23-Emerald III
    July 3, 2012

    Hugo,

    When I add the parameter to the properties, it places the date in the table. Then when I open the properties of cell of the table, it already has the date, and not the parameter. Is there a way to edit the table outside of a drawing? Typically I modify the table and then resave.

    Or is there something else that I am missing?

    Thanks,

    Dale

    1-Visitor
    July 4, 2012

    The parameter "&todays_date" takes in the system date, converts it into a text. Hence, it does not update. Another alternative is to remove the date from the table and instead print the drawing to PDF with Label ON. This would generate a PDF file with the current date.

    Capture.JPG

    Capture_1.JPG

    1-Visitor
    July 4, 2012

    I think I may have found some solutions to both inserting the value in a table and having the value on a drawing update but because of when I started, 1 AM, it will be tomorrow before I know for sure. So far it appears that the way I'm doing things keeps the parameter from being converted to text. I'll let you know what I get.

    1-Visitor
    July 4, 2012

    Hello!

    You can try this, create a txt file where you type a relation ( DATE="2012-07-04" ).
    Create a mapkey to read the relation file txt that you just create.
    Every day you start to work you change the date in the txt file.
    When you are in part before creating the drawing file you execute the mapkey.

    Not the clever solution...but it works because it's what i do.

    I forgot to tell you that u have to create a &DATE parameter in the table in your formats

    Dale_Rosema
    23-Emerald III
    July 5, 2012

    Hugo,

    When you say that you have to create the &date parameter in the table in your formats, are you talking about editing the stand alone table? If so, I think this is what I need. How would you edit a table outside of editing it in a drawing and saving it out?

    Thanks,

    Dale