Cancel
Showing results for 
Search instead for 
Did you mean: 

TCIC - date format in CATIA drawing

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Hi,

I want to map date of object (e.g. last modified date) from TC into CATIA drawing. Mapping - ok, Attribute link in drawing - ok. The problem is that the date is shown in format YEAR MONTH DAY HOUR:MINUTESmiley FrustratedECONDS (e.g. 2017 03 28 07:33:25).

Is it possible to set this somehow to display only date, not time?

8 REPLIES

Re: TCIC - date format in CATIA drawing

Genius
Genius

This is not possible with OOTB today.

Attribute Mapping bring whatever the value exist in Teamcenter into CATIA and TcIC cannot truncate this to any desired value

 

 

Re: TCIC - date format in CATIA drawing

Solution Partner Pioneer Solution Partner Pioneer
Solution Partner Pioneer

Yes, I see that the date in CATIA is string. It is the result of mapping. I was also thinking if some "abracadabra" in mapping would control that only date would go to CATIA.

If I will not find any solution, the customer will have the dates with astronomical precision Smiley Very Happy

Highlighted

Re: TCIC - date format in CATIA drawing

Genius
Genius

Yes. In CATIA date is String. I am not sure if Teamcenter have any setting to control this precision for "last modified date" property.

If it could be then interesting check with CATIA.

Re: TCIC - date format in CATIA drawing

Solution Partner Experimenter Solution Partner Experimenter
Solution Partner Experimenter

There is a WorkArround with catia parameters and formulas:

created_date - string attribute map from TC format date and time

created_date_short=`created_date` ->Extract(0,10) TCIC_format date_WA.png

 

Re: TCIC - date format in CATIA drawing

Builder
Builder

Hello Juraj,

 

Found your posting here. We plan to synchronize the title block attributes recently. I am a little bit lost on this mapping process. Could you post some steps I can map teamcenter attributes to update the title block? I am able to map the attributes to custom property. But have little knowledge on how they are mapped to title block...

Re: TCIC - date format in CATIA drawing

Experimenter
Experimenter

You can acheive it writing small itk code. If you have any user exit points/entrypoints, you can get the catia LMD as a string from the dataset tag, then break the string into time structure and manipulate the time the way you want. Now the required format of string can be set to your variable.

 

Thanks!  

Re: TCIC - date format in CATIA drawing

Experimenter
Experimenter
I am sorry for wrongly understood the question. Since it is a out of the box property, we cannot change the format. But you can create a custom property in Teamcenter and map the new value using attribute mapping.

Re: TCIC - date format in CATIA drawing

Genius
Genius

Hi,

 

This could be possible with two ways in CATIA

 

1. Either modify the Feature Properties of title block attribute with Teamcenter Attribute . For example "Item Name" or "Dst Name"

2. Or Create Parameter in Drawing and link with title block attribute usng attribute link and then do attribute mapping between Drawing Parameter and Teamcenter attrbute.