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

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Context renaming with API

rzemmali
12-Amethyst

Context renaming with API

Hello,

How to rename a container programmatically?

Thank you.

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
15-Moonstone
(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
rzemmali
12-Amethyst
(To:Florent)

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

 

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

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

 

Announcements

Top Tags