Renaming Creo Files with Suffixes

There are situations when a set of models needs to be renamed with a common base part number and incremental dash numbers. The technique documented below will speed up the renaming of these files especially if there are a large number of files to be renamed.

In this example, I have an assembly model of a simplified power supply. This assembly contains thirteen unique parts that we need to rename to share a common base part number and sequential dash numbers. The existing 3-d model and model tree are shown below.

suffix_rename_01

The steps below can be used to rename the model.

    1. Open the assembly model in Creo Parametric.

 

    1. Select File > Save As > Save a Copy and type in the new name in the dialog box. In this example we will use “P123456.ASM” for the new name. Click OK button after entering the new name.

suffix_rename_02

suffix_rename_03

 

    1. The next step is to temporarily append the file name for each object in the list that we would like to rename. This will allow us to export the file list for manipulation in Excel.
        1. Select files to be renamed in list with the default suffix of “_”.
        2. Click Generate New Names button.
        3. Select or Deselect Copy Drawings as required.

       

      This is what the “Assembly Save A Copy” dialog will look like after completing these steps.

      suffix_rename_04

       

    2. The next step is to export the list of old names and new names to a text file. Select File > Save to save the text file. Change the directory to your working directory and click Save button.

suffix_rename_05

suffix_rename_06

 

    1. Open the text file and copy the contents to cell A1 in an Excel worksheet.

suffix_rename_07

 

    1. Type the new name in cell B2 (e.g. P123456-001).

suffix_rename_08

 

    1. Drag the square in the bottom right corner of the cell down to increment the dash number for all rows.

suffix_rename_09

 

    1. Copy both columns in worksheet back to the text file and save the text file. (This file can be used in the future if model updates are received from your supplier to map the supplier file names to the new file names.)

suffix_rename_10

 

    1. The next step is to load the file names back into the dialog box.       Select File > Load and navigate to the working directory. Click Open button.

suffix_rename_11

suffix_rename_12

 

    1. After the file is loaded, the dialog should like this.

suffix_rename_13

 

    1. Click the Save Copy or Save Copy and Open button to finish.

suffix_rename_14

You now have a copy of the original files using the new name base file name with suffixes.

(6659)

8 thoughts on “Renaming Creo Files with Suffixes”

  1. I have two question:-
    1. Is any way,If i do not want to change common name in this renaming process.
    2. if there is same relation in all part. can i delete it at the time of renaming process or can i delete them together instead of deleting by opening each part.

  2. Firstly thankyou for the post, its been very helpful.

    I’m having trouble doing this in assemblies with multiple levels of components.
    When saving out the text file, creo only seems to save the subassembly names, and not any of the component names within each subaassembly.

    Do you know whether it is possible to save out all of the component names?

    1. Yes, you should be able to select any item in the Save-As window and specify a “temporary” name. All items with a “temporary” name will show up when you save the text file.

  3. The STEP file I imported had long filenames and when I add the _ suffix to generate the new names many are now over the 31 character limit and if those items aren’t exported to the text file. I tried several options to rename the items to be under the 31 character limit using the template but am not having success. Is there any way to globally rename to a shorter name so all items export in the text file??

  4. I have found rename to be more reliable than save as. and people seem to also forget that drawings need to be in session that the models are attached to so that drawings will not need to be redone when doing a rename

    1. Thank you Craig, that is a good point regarding drawings…they must be in session for Renames, and depending on your config.pro settings, they may NOT need to be in session for a Save-A-Copy operation. The OP was primarily describing a speed tip for renaming large numbers of components in an assembly. Rename used to be a one-at-a-time operation, prior to Creo, but now has the same interface as the Save-As for assemblies.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.