Cancel
Showing results for 
Search instead for 
Did you mean: 

Show autor, creation date... in drafting inside TC

Valued Contributor
Valued Contributor

How can I show the autor of the drafting file, the creation date in NX manager? I can't find this values as attributes. Thank you

9 REPLIES

Re: Show autor, creation date... in drafting inside TC

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
If i'm right you need to map the TC attributes to NX attributes to use them in NX

Ruud van den Brand
Pre-sales NX CAD
cards PLM Solutions

Re: Show autor, creation date... in drafting inside TC

Valued Contributor
Valued Contributor

We have other customized attributes mapped by our local Siemens dealer but I thought file creation date and file author would be storaged inside the CAD file.

Re: Show autor, creation date... in drafting inside TC

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
native it don't save this automatically.


Ruud van den Brand
Pre-sales NX CAD
cards PLM Solutions

Re: Show autor, creation date... in drafting inside TC

Gears Phenom Gears Phenom
Gears Phenom

I'd like to do something like this too, do you know which attributes in TC, I would need to get our admin to map over to NX?

 

I'd like creation date, and possibly the creator.

 

Also, if a "save as" is done, would these update to the new creator, and save date?

 

Thanks!

-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Show autor, creation date... in drafting inside TC

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @DaveK,

 

You could use something similar to the following for drawing files (UGPART datasets):

 

{ Dataset type="UGPART"

    # NX_ATTRIBUTE : TC property /switches

    DB_CR_USER : owning_user.user_id /master=iman /description="Created by User"

    DB_CR_DATE : creation_date /master=iman /description="Date Created"

}

 

Replace user_id with user_name if you prefer.

 

Regards, Ben

Re: Show autor, creation date... in drafting inside TC

Gears Phenom Gears Phenom
Gears Phenom

What about "released date", and/or "released by", would that even be possible?  since the drawing is essentially locked, once the release work flow is started, I'm not sure?   and if it can be put on the drawing post release, could an "approval" date, or name be added, once it passes that stage of the workflow?

 

Workflow would have to include PDF creation after these "signatures" were added....getting way beyond my Teamcenter skills, but food for thought.

-Dave
NX 11 | Teamcenter 11 | Windows 8.1

Re: Show autor, creation date... in drafting inside TC

Siemens Phenom Siemens Phenom
Siemens Phenom

@DaveK,

 

You should be able to map any of the properties assigned to a business object.  Just right click on the dataset and choose "View Properties" to get a list and their values.  I've updated my previous mapping to add release status and date:

 

{ Dataset type="UGPART"

    # NX_ATTRIBUTE : TC property /switches

    DB_CR_USER : owning_user.user_id /master=iman /description="Created by User"
    DB_CR_DATE : creation_date /master=iman /description="Date Created"

    Dataset_Status : last_release_status.name /master=iman /description="Dataset Status"
    Dataset_Status_Date : date_released /master=iman /description="Dataset Status Date"

}

 

You could probably use the last_mod_user property for the released by name:

"LAST_MOD_USER" : last_mod_user.user_name /master=iman /description="Last Modifying User"

You can also use release_status_list to get the name of the status:

RELEASE_STATUS : ItemRevision.release_status_list.name /master=iman /description="Release Status"

(though I don't know why you would use this one versus last_release_status - a question for TC guys?)

 

Here's a screenshot having used all 6 of the above:

 

Screenshot - 2_16_2017 , 8_57_15 AM.png

 

Regards, Ben

Re: Show autor, creation date... in drafting inside TC

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hi Ben,

 

how can i change the format, so i only see the date without time

 

i allready tried evrything with tc but i allways recive the time.

 

i change at tc the timelocal_locale.xml

 

i tried the ugii_display.... format variable

 

but allways the **bleep** time is there :-)

 

regards 

 

cabelguy

Re: Show autor, creation date... in drafting inside TC

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi @Cableguy,

 

Does the following SFB provide anything useful?

 

SFB-NX-6874: NX Part Attributes Mapped From Teamcenter

 

Regards, Ben