Skip to main content
13-Aquamarine
Oct 17, 2014 4:57 PM UTC
Solved

Code for renaming EPMDoc Number and Filename

Can anyone share java code for renaming EPMDoc Number and Filename?

DarrellAnswer
13-Aquamarine
Oct 20, 2014 1:09 PM UTC

I found the answer. Characters for filename must be lower case.See PTC article CS110903.

6 replies

20-Turquoise
Oct 17, 2014 5:09 PM UTC
On 10/17/14 11:57, Darrell McAlister wrote:
>
> Can anyone share java code for renaming EPMDoc Number and Filename?
>

From
Translate
Darrell13-AquamarineAuthor
13-Aquamarine
Oct 19, 2014 4:12 PM UTC

Thanks for the help, Randy.Hard to believe whatIwas looking for was in the PTC KB. The renaming works in WC, but I am having a problem opening the renamedCADDocs in Pro/E.It downloads to the workspace butgives me the error "<name>cannot be retrieved" in the Pro/E message area. It seems like it's stilllooking for the old name somewhere. I thought I remembered seeing something related to this subject when I was searching through the forum but can't find it now. Anyone know how to fix it?

Translate
3-Newcomer
Oct 20, 2014 10:57 AM UTC
If the files were in the workspace already you need to select 'Tools'; 'Synchronize' from the embedded browser.
It does a more comprehensive comparison and picks up renames whereas a Workspace Refresh does not.
Translate
Darrell13-AquamarineAuthorAnswer
13-Aquamarine
Oct 20, 2014 1:09 PM UTC

I found the answer. Characters for filename must be lower case.See PTC article CS110903.

Translate
1-Visitor
Aug 12, 2017 12:31 AM UTC

Were you looking for Java code? I have an external script that can rename from a text file input. I use it for mass renames.

Translate
Darrell13-AquamarineAuthor
13-Aquamarine
Sep 2, 2017 4:29 PM UTC

Thanks for the reply Antonio. Since I posted this a few years ago I wrote some code that renames given an input file. I posted it here: https://community.ptc.com/t5/Windchill-Blog/Windchill-Custom-Utility-Examples-Updated/ba-p/483122

Translate