Skip to main content
7-Bedrock
May 24, 2012
Question

a way to date / time stamp a drawing?

  • May 24, 2012
  • 3 replies
  • 15747 views

In our small company (6 designers) we have found it beneficial to date and time stamp the lower right corner of drawing format just outside the border. Years ago we had a CAD system that when you entered the text #date, #time, etc it would enter the system date and time. We have been using Pro/E since Rev 18 or so and gotten away from it, but now management would like to look into bringing it back. Does anyone know of a way in Creo to do this? It would be even better if it were totally automatic when you save the file. Thanks.

Bruce


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

3 replies

BPapp7-BedrockAuthor
7-Bedrock
May 24, 2012

I searched before I posted and came up empty, after I entered my post I saw "similar posts" which helped a little. In annotation, entering "&todays_date" does cause a text entry of the system date. So that is a step in the right direction. Is there a way to get the sytem time also? And also, any way to get the system to automatically enter this upon saving?

Thanks again.

Bruce

Patriot_1776
22-Sapphire II
May 24, 2012

You can use: "&todays_date", but that works only when you insert it, and doesn't update. You can put that as variable text in a symbol, and then when you do a "properties" on the symbol, it will update without you actually having to change it.

You can use: &PTC_WM_MODIFIED_ON:D, but since that is a parameter created by windchill, you have to save the dwg, check it in, then do and "update" to get it to change. This parameter can also be used as variable text in a symbol.

What I did was created a symbol that had "&todays_date" and a parameter I created in the dwg: "&DWG_TODAYS_DATE" which I manually changed, but then after an update automatically changed all the occurrances on all the sheets.

Good luck.

13-Aquamarine
May 24, 2012

Honestly Bruce I think you can do this when you export to PDF. I think you can add the timestamp but I haven't tried it myself. I've seen the option though.

Also... how are you creating your prints. Are you just printing manually or through some sort of script. Are you printing directly to the printer or are you generating PDF's?

I am short on time for the next two weeks but I think there are several options here.

Thanks!

-Brian

13-Aquamarine
May 24, 2012

Hi Bruce...

The Label function in the printer panel still works well- even at Creo 2. But, from my understanding, you want this stamp every time you SAVE the drawing?

While I'm confident you can do this... I think it's overkill. In the past you could do this during a print operation... and you indeed still can. But during a SAVE operation? Egad.

Multiple people have suggested the "todays_date" variable. There are no other good variables other than the ones Frank and others have already given. However, you can always pull data from your operating system. If you needed to, you could put your username, workstation/computer name, date, time, timezone, and a million opther pieces of information on the drawing. You just need to pull them from the OPERATING system, not from Creo.

I can think of a couple of ways to do this... but I need to think on the easiest method to do it. You need to execute a system command and then capture the output so you can use it in Creo. I can do it with a small script but I'd like something easier. Either way, if you want this to update at each save, you're probably going to have to do one of two things:

  • turn on the switch that automatically regenerates the model before a save is executed (so the variables update... that's *IF* I can get them to work at all)
  • Create a mapkey to replace the default SAVE key. The mapkey would execute the script to grab all the necessary system data and update the Creo variables... then save.

This sounds like a very long way around the barn. Can you live with the built-in print date stamp function... or do we need to dig into a more complex solution?

Thanks!

-Brian

1-Visitor
July 7, 2016

Hi Eric and other interested.

I said, I will check tomorrow, now it's 2,5 years .....

But now I switched to CREO2 and I tried the way.

The OS script works fine.

But now, I have problems, to transfer the string from the clipboard to the drawing parameter.

I recorded a mapkey, it is documented downwards

(The emoticon at line 3 is not correct it is ; and \ )

As can be seen, there is at line 8 a fix string for the date,

which shouldn't be there!

Does anyone know the solution?

Greetings,

Holger

mapkey spr @MAPKEY_LABELset parameter;\

mapkey(continued) ~ Activate `main_dlg_cur` `page_Tools_control_btn` 1;\

mapkey(continued) ~ Command `ProCmdDwgParameters`

mapkey(continued) ~ Arm `relation_dlg` `ParamsPHLay.ParTable` 2 `rowPLOT_DATE` `value`;\

mapkey(continued) ~ Disarm `relation_dlg` `ParamsPHLay.ParTable` 2 `rowPLOT_DATE` `value`;\

mapkey(continued) ~ Select `relation_dlg` `ParamsPHLay.ParTable` 2 `rowPLOT_DATE` `value`;\

mapkey(continued) ~ Key `relation_dlg` `ParamsPHLay.ParTable` 39190550 `Ctrl+V`;\

mapkey(continued) ~ Update `relation_dlg` `ParamsPHLay.ParTable_INPUT` `07.07.2016-14:31`;\

mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;