Revision name of item ID?

Is it possible to get revision name of item ID?

I know using the code workPart.GetStringAttribute("DB_PART_NAME") only get the Name of the Item Id but not the revision name.

Thanks,
Daniel R.

It might depend on your TC setup, but you should be able to get the revision through the "DB_PART_REV" attribute.

Ok, is there a way to change the setup of my TC ?

So, you don't have the "DB_PART_REV" attribute on your files?

I have no experience in setting up/administering basic TC options; I thought it was a default setting. The two TC installs that I've worked with had it set up before I got there.

There is a sample program (in C#) on GTAC which gets the attributes DB_PART_DESC, DB_PART_NAME, DB_PART_NO, DB_PART_TYPE and DB_PART_REV.
https://solutions.industrysoftware.automation.siemens.com/view.php?sort=...
This implies that these are all standard attributes for integrated NX. They are all available on our system.

If you are using NX8 or above you should use workPart.GetUserAttributeAsString("DB_PART_REV", NXObject.AttributeType.String, 0) rather than GetStringAttribute.

Mike