Rename WTDocument Primary Content File
Is it feasible to reanme a WTDocument primary content file?
I have tried the following via the Windchill API, however, the file name does not change.
ContentHolder contentHolder = ContentHelper.service.getContents(wtDocument);
ContentItem item = ContentHelper.getPrimary((FormatContentHolder) contentHolder);
if (item != null && item instanceof ApplicationData)
{
((ApplicationData) item).setFileName(newPrimaryContentName);
primaryContentNameUpdates++;
}
There are InfoEngine mechanisms to delete and/or add content items, however, I did not find any such mechanisms to simply rename the file name.
Any help would be appreciated.
Cory Skradski

