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

a way to date / time stamp a drawing?

JLG
Level 1

Re: a way to date / time stamp a drawing?

If you want to get serious about batch programming, there's an old but still excellent book:

Windows NT Shell Scripting: Timothy Hill: 9781578700479: Amazon.com: Books

Good websites:

Batch File Scripting Techniques

Batch Commands

Of course, these are for good old DOS/Windows batch scripting.  There are other, newer scripting languages for Windows -- Windows Script Host (WSH) and PowerShell Script.  Depending on what you want to do, they might work better for you.  Again, Google can help you out.

Highlighted

Re: a way to date / time stamp a drawing?

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`;