cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Context renaming with API

rzemmali
11-Garnet

Context renaming with API

Hello,

How to rename a container programmatically?

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions

There seems to be this knowledge article, available on the Support site, with regards to renaming product containers;

 

Need to know the AP to rename a product container

https://www.ptc.com/en/support/article/CS235162

 

I'd suggest opening a Support case, to double-check, with one of the customization engineers.

 

Mike

 

View solution in original post

5 REPLIES 5
Florent
14-Alexandrite
(To:rzemmali)

There is a Java method for this:

wt.pdmlink.PDMLinkProduct.setName(String)
wt.inf.library.WTLibrary.setName(String)
wt.projmgmt.admin.Project2.setName(String)

 

 

Not sure if there is a REST service for the same.

 

 

Florent ROUSSEL
www.4cad.ca

I get this error when calling the setName() method:

 

Exception occurred: Changes to "Context Name" are restricted, once the object has been persisted.

Ajit_Kulkarni
14-Alexandrite
(To:rzemmali)

you can also use setName() method of WTContainer

same error with WTcontainer

There seems to be this knowledge article, available on the Support site, with regards to renaming product containers;

 

Need to know the AP to rename a product container

https://www.ptc.com/en/support/article/CS235162

 

I'd suggest opening a Support case, to double-check, with one of the customization engineers.

 

Mike

 

Top Tags