Creo - year of creation in a note
Creo - year of creation in a note
(OP)
Hello,
I am looking for a way to put the current year on drawing, like todays date. The latter i found how to do that. HOwever the year only is something different apparently. We want to have a drawing format, that updates this year number by itself according to the year in which a drawing is made. So it can be like the "&todays_date " which turns into 'dead text' once applied.
Thanks in advance for the help!
I am looking for a way to put the current year on drawing, like todays date. The latter i found how to do that. HOwever the year only is something different apparently. We want to have a drawing format, that updates this year number by itself according to the year in which a drawing is made. So it can be like the "&todays_date " which turns into 'dead text' once applied.
Thanks in advance for the help!
RE: Creo - year of creation in a note
RE: Creo - year of creation in a note
What I do is I have the copyright @ year note in a table on the format. In the drawing template, I have a parameter for year. The end of the year or beginning of the new year, I revise the templates with the current year. I have 5 templates to update annually, but it only takes about an hour to do them all and get them checked back into Windchill.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creo - year of creation in a note
RE: Creo - year of creation in a note
I can imagine that a work around could work then as you can put the complete date of today on drawing.
could be a workaround?
RE: Creo - year of creation in a note
RE: Creo - year of creation in a note
RE: Creo - year of creation in a note
Parameters can be uploaded to Windchill, but they are not editable from within Windchill. Maybe with some special code it could be possible, but not in OOTB Windchill.
It is documented in older PTC manuals that the date becomes fixed once it is added to a drawing.
You can use relations in the model that can extract the date or year from various system parameters. We used to do this to fix a creation date for the drawings and would only update IF the revision was '0'. We also did it for some names.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creo - year of creation in a note
This is generally how a number of Windchill parameters are pushed to Creo.
RE: Creo - year of creation in a note
I can assume there is also no link back possible to this dead text on drawing?
So you open a drawing, it creates the date from the &todays_date , it is not possible to put that into a variable? It can stay dead, thats no problem, thats what we would like.
I could use some relations to get the last four numbers to obtain the year.
If i understand correctly that is not possible?
Thanks for your answers so far :)
RE: Creo - year of creation in a note
If so, this may work:
YEAR='20'+extract(PTC_WM_MODIFIED_ON,8,2)
This will change the year to the current year every time the drawing is modified.
I created that in the drawing itself, but you may be able to create it in a template.
Some relations do work in drawings.
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
RE: Creo - year of creation in a note
RE: Creo - year of creation in a note
The os script can run a python script dat generates an xml file with parameters of my liking like the date drawn and year in it.
So that could allow me to get the desired date data into creo as i then can use another mapkey to import this.