Skip to main content
Nov 13, 2023 7:22 AM UTC
Solved

Change a file with an configuration iteration to a file without an configuration iteration.

Hello,

I reinstalled Creo 6 recently. I didn't pay attention to my configuration options and the "save_file_iterations" configuration was set to yes. I modified my configuration options to no longer have the iteration for my next files and I understood that if my existing files have the iteration extension they will continue to have the iteration extension at each save.

Hence my question: Is there a way of removing this iteration extension so that I can have "classic" files again?

(I don't use Windchill).

Thanks for your help.

 

Chris3Answer
Nov 13, 2023 12:19 PM UTC

If I understand your question you have CADpart.prt.3 and you want to remove the .3 so the extension is just .prt. With Creo closed you can use windows explorer to browse to the files in questions and perform a rename to remove the .3

 

If you have a lot of files I am sure you could ask ChatGPT to write you a rename script that would do this for you.

 

For instance here is a powershell version:

Get-ChildItem -Filter *.*.* | ForEach-Object {
 $newName = $_.Name -replace '\.\d+$'
 Rename-Item $_.FullName -NewName $newName
}

3 replies

Nov 13, 2023 10:05 AM UTC

@KR_10474642 wrote:

Hello,

I reinstalled Creo 6 recently. I didn't pay attention to my configuration options and the "save_file_iterations" configuration was set to yes. I modified my configuration options to no longer have the iteration for my next files and I understood that if my existing files have the iteration extension they will continue to have the iteration extension at each save.

Hence my question: Is there a way of removing this iteration extension so that I can have "classic" files again?

(I don't use Windchill).

Thanks for your help.

 


Hi,

please test Creo behaviour by yourself.

Chris3Answer
Nov 13, 2023 12:19 PM UTC

If I understand your question you have CADpart.prt.3 and you want to remove the .3 so the extension is just .prt. With Creo closed you can use windows explorer to browse to the files in questions and perform a rename to remove the .3

 

If you have a lot of files I am sure you could ask ChatGPT to write you a rename script that would do this for you.

 

For instance here is a powershell version:

Get-ChildItem -Filter *.*.* | ForEach-Object {
 $newName = $_.Name -replace '\.\d+$'
 Rename-Item $_.FullName -NewName $newName
}
Nov 14, 2023 6:24 AM UTC

Thank you! I will try this method, it will be much faster to modify all my files with iteration. Otherwise I just found my main mistake which was to use 2 different config on Creo ... 😔