Skip to main content
4-Participant
December 9, 2024
Solved

API to update the display name of the  attributes in a softype.

  • December 9, 2024
  • 3 replies
  • 1216 views

Version: Windchill 12.1

 

Use Case: API to update the display name of the  attributes in a softype. 


Description:

API to update the display name of the  attributes in a softype. 

 

JZ_11553986_0-1733711297669.png

Anyone can help.

 

 

Best answer by HelesicPetr

Hi @JZ_11553986 

What is nightmare?

If you have several servers where the attributes are identical, you set it just on one server and then just export/import the attributes for all types..

Also it can be automated by command line scripts so why do you want write an function that already exists...

CS30168 - How to export and import soft types and attributes using 'LoadFromFile' in Windchill

btw, based on the exported xml you could be able to find an api that can modify the display names. Sure not supported...

PetrH

3 replies

Fadel
23-Emerald I
December 9, 2024

There is no supported API to do this , not even for read https://www.ptc.com/en/support/article/CS427355 

Buiꓘa
4-Participant
December 10, 2024

I have got the way to do this, any one who need this can contact me ,thanks.

joe_morton
18-Opal
18-Opal
December 10, 2024

I'm curious.. why would you want an API to do that? Are you really needing to change display names of attributes so dynamically?

4-Participant
December 11, 2024

Yes,   we have a lot of atrributes need to update the locale displayname( EN_US, Zh_CN and so on). and we need to do it in several test servers first.

Could you image How to do this without scripts, It's a nightmare. 

HelesicPetr
22-Sapphire II
22-Sapphire II
December 11, 2024

Hi @JZ_11553986 

What is nightmare?

If you have several servers where the attributes are identical, you set it just on one server and then just export/import the attributes for all types..

Also it can be automated by command line scripts so why do you want write an function that already exists...

CS30168 - How to export and import soft types and attributes using 'LoadFromFile' in Windchill

btw, based on the exported xml you could be able to find an api that can modify the display names. Sure not supported...

PetrH